Sum of two numbers#include <stdio.h>
#include <conio.h>
void main()
{
int a;
int b;
int sum=0;
clrscr();
printf("Enter first number : ");
scanf("%d",&a);
printf("Enter second number : ");
scanf("%d",&b);
sum = a+ b;
printf("\nSum is : %d",sum);
getch();
}
Output :
0 comments:
Post a Comment