//WAP TO ADD TWO NUMBERS
#include
#include
void main()
{
int a,b,c;
clrscr();
printf("ENTER THE FIRST NUMBER=");
scanf("%i",&a);
printf("\nENTER THE SECOND NUMBER=");
scanf("%i",&b);
c=a+b;
printf("\nSUM OF TWO NUMBERS=%d",c);
getch();
}
/******OUTPUT******
ENTER THE FIRST NUMBER=2
ENTER THE SECOND NUMBER=3
SUM OF TWO NUMBERS=5
*/
No comments:
Post a Comment