ADD ANY TWO NUMBER IN C
ADD ANY TWO NUMBER IN "C"
#include<stdio.h>
int main ()
{
int a,b,c;
printf("enter two number to add\n");
scanf("% d % d", & a, & b);
c=a+b;
printf("sum of entered number=%d\n",c);
return 0;
}
output
enter two number to add
3
5
sum of entered number=9
- #include<stdio.h>
- int main()
- {
- int a, b, c;
- printf("Enter two numbers to add\n");
- scanf("%d%d", &a, &b);
- c = a + b;
- printf("Sum of the numbers = %d\n", c);
- return 0;
Comments
Post a Comment