C Program to find sum of two numbers
Posted by Samath
Last Updated: January 02, 2017

Write a C program that ask the user to enter two integers. Then, the sum of those two integers is stored in a variable and displayed on the screen.


int main() {
   int num1, num2, sum;
   printf("\nEnter two no: ");
   scanf("%d %d", &num1, &num2);
   sum = num1 + num2;
   printf("Sum : %d", sum);