Add Two Integers with C Language.
#include <stdio.h>
int main()
{
int x,y,result;
printf("Enter first number : ");
scanf("%d", &x);
printf("Enter second number : ");
scanf("%d", &y);
result = x + y;
printf("Total is = %d", result);
return 0;
}
Output:-
Enter first number : 5 Enter second number : 5 Total is = 10
0 Comments