C Program to Add Two Integers:
In this model, the client is approached to enter two whole numbers. Then, the amount of these two numbers is determined and shown on the screen.
To comprehend this model, you ought to have the information on the accompanying C programming points:
#####################################################################################
#include <stdio.h>
#include <conio.h>
void main()
{
int num1, num2, sum;
printf("Enter the 1st integers: ");
scanf("%d", &num1);
printf("Enter the 2nd Number:");
scanf("%d",&num2);
// calculating sum
sum = num1 + num2;
printf("%d + %d = %d", num1, num2, sum);
getch();
}
Example:
Enter the 1st number: 12 Enter the 2nd Number: 11 12 + 11 = 23
#####################################################################################