c program to add two numbers
program :
#include <stdio.h>
int main()
{
int a, b, c;
printf("enter number a : \n");
scanf("%d", &a);
printf("enter number b : \n");
scanf("%d", &b);
c = a + b;
printf("sum of a and b =%d\n", c);
return 0;
}
output :
enter number a :
11
enter number b :
14
sum of a and b =25
Comments
Post a Comment