→ Program to add two numbers and print.
#include<stdio.h>
int main()
{
int a,b,c;
a=8;
b=9;
c=a+b;
printf("Addition of %d and %d is %d", a,b,c);
return 0;
}
Output: Addition of 8 and 9 is 17
#include<stdio.h>
int main()
{
int a,b,c;
a=8;
b=9;
c=a+b;
printf("Addition of %d and %d is %d", a,b,c);
return 0;
}
Output: Addition of 8 and 9 is 17
Comments
Post a Comment