C Program to calculate the sum of two numbers Posted by Shrinidhi Katti Get link Facebook X Pinterest Email Other Apps #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: Comments
Comments
Post a Comment