Program Description:

In this program we are going to add two integers.We will ask the user to enter two integers and then show the sum in the output screen. It is one of the most easiest program.

Source Code:

#include<stdio.h>
int main()
{
int a,b,sum; 
printf("Enter the first number:"); 
scanf("%d",&a); 
printf("Enter the second number:");
scanf("%d",&b);
sum=a+b;
printf("The sum of %d and %d is %d",a,b,sum);
 return 0;
}

Output:


*If you want to do substraction, multiplication and division then just go to line sum=a+b and change the '+' sign to according to your respective operation.


If you have any queries regarding the program feel free to ask in the comments section!