Sum of two numbers program in C

Do you want to find the Sum of two numbers program in C programming Language? Here is the Program you can try!

Find the sum of two numbers: C Program

#include<stdio.h>
/*Learn C Programming at CodeAtGlance.com: Sum of two numbers program in C*/
int main() {
   int num1, num2, sum;
   printf("\nEnter two numbers: ");
   scanf("%d %d", &num1, &num2);
   sum = num1 + num2;
   printf("Sum : %d", sum);
   return(0);
}

 

Leave a Reply