Adding Two numbers
Hello Reader,
In this program, i used the simple method to print the two unknown value that user is going to insert it, and by this same method you can try to multiply or divide the two numbers.You can also try for more number.
#include<stdio.h> //standard library input/output
#include<conio.h>
int main() //main module
{
int a,b,ans; //define variables
{
ans=a+b; //sum of two numbers that user want to print as 'a' and 'b'
printf("%d",ans); //display the answer by adding two numbers
}
}
In this program, i used the simple method to print the two unknown value that user is going to insert it, and by this same method you can try to multiply or divide the two numbers.You can also try for more number.
#include<stdio.h> //standard library input/output
#include<conio.h>
int main() //main module
{
int a,b,ans; //define variables
{
ans=a+b; //sum of two numbers that user want to print as 'a' and 'b'
printf("%d",ans); //display the answer by adding two numbers
}
}
0 comments:
Post a Comment