C program to add two numbers.

C program to add two numbers.

#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, c;
printf("Enter two numbers to add\n");
scanf("%d%d",&a,&b);
c = a + b;
printf("Sum of entered numbers = %d",c);
getch() 
}
Expected Output:
Enter two numbers to add
5
9
Sum of entered numbers =14

Post a Comment

Previous Post Next Post