int main()
{ int num1,num2,total;
printf("Enter two numbers");
scanf("%d %d",&num1,&num2);
total=num1 + num2;
printf("%d",total);
return 0;
}
In this program, the user is asked to enter two integer number. Theses two numbers are stored in variable num1 & num2 resp.
Addition ('+') operator add two numbers and the result is stored in "total" variable.
Recommended for you:-