Friday 26 December 2014

Program to Input a no. and Sum it

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sum;
printf("Enter The No. \n");
scanf("%d%d",&a,&b);
sum=a+b;
printf("Sum of two no. is%d",sum);
getch();
}

Output

Enter The No.
2
3
Sum of two no. is 5