Sunday, March 10, 2013

Add Two Numbers Providing the Value from Keyboard


#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
printf("input the value of a=");
scanf("%d",&a);
printf("input the value of b=");
scanf("%d",&b);
c=a+b;
printf("input the summation is=%d",c);
getch();
}

No comments:

Post a Comment