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.
Code:
#include<stdio.h>
int main() {
int num1, num2, sum;
printf("\nEnter two no: ");
scanf("%d %d", &num1, &num2);
sum = num1 + num2;
printf("Sum : %d", sum);
return(0);
}