Friday, February 13, 2015

C program to find sum of two numbers

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("
Sum=%d",sum);
getch(); //to stop the screen
}