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 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;
printf("The sum of %d and %d is %d",a,b,sum);
return 0;
}
1 Comments
Thank you sir. It's really a great initiative. 😊😊
ReplyDelete