c program to find the addition of 2 numbers
In this Topic ,We are going to learn how to perform the addition of 2 numbers. We take 2 integer numbers from user and store them in 2 separate variables and finally add those 2 values and store it in other variable and print it.

Er. Gaurab Mishra
5 months ago | 1 min read
Follow
//Wap to find the sum of two numbers
#include<stdio.h>
int main()
{
int a,b,sum;
printf("Enter the first number\n");
scanf("%d",&a);
printf("Enter the second number\n");
scanf("%d",&b);
sum=a+b;
printf("the sum of two numbers is %d",sum);
return 0;
}
Upvote

Created by
Er. Gaurab Mishra
Follow

Post
Related Articles