/* SUM OF TWO NUMBERS*/
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter first number:");
scanf("%d",&a);
printf("\nEnter second number:");
scanf("%d",&b);
c=a+b;
printf("The sum of two numbers =%d",c);
getch();
}
/************************OUTPUT***************************
Enter first number:23
Enter second number:27
The sum of two numbers =50*/
No comments:
Post a Comment