Thursday, 15 September 2011

Add two numbers in c language.

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter the first number: ");
scanf("%d",&a);
printf("Enter the second number: ");
scanf("%d",&b);
c=a+b;
printf("The sum of the above two number is = %d ",c);
getch();
}

No comments:

Post a Comment