C Program to calculate 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 is : %d\n",sum);
}

Output:
C Program to calculate the sum of two numbers

Comments