C Program to Add Two Integers
//C Program to Add Two Integers
//Header Files
#include<stdio.h>
#include<conio.h>
//main function
//where the execution of program begins
void main()
{
int a,b,sum;
clrscr();
printf("Enter two integers: ");
// Two integers entered by user is stored using scanf() function
scanf("%d %d", &a, &b);
// sum of two numbers in stored in variable sum
sum = a + b;
// Displays sum
printf("%d + %d = %d", a, b, sum);
getch();
}
Output