write a program to add two numbers in C language
#include <stdio.h>
#include <conio.h>
int main()
{
int a,b,sum;
printf("Enter two numbers to add\n");
scanf("%d%d",&a,&b);
sum=a+b;
printf("Sum of the entered numbers=%d\n",sum);
return 0;
}
OUTPUT: -
Enter two numbers to add
7
3
Sum of the entered numbers= 10


No comments:
Post a Comment