Saturday 28 April 2012

C program to find sum of two numbers


#include<stdio.h>
 #include<conio.h>


void main()
{
int a,b,sum;
clrscr(); //to clear the screen
printf("Enter first no:");
scanf("%d",&a);
printf("Enter second no:");
scanf("%d",&b);
sum=a+b;
printf("\nSum=%d",sum);
getch(); //to stop the screen
}


Related Posts Plugin for WordPress, Blogger...