#include<stdio.h>
#include<conio.h>
void sum();
void main()
{
sum();
}
void sum()
{
int a, b, c;
clrscr();
printf("\nEnter number1: ");
scanf("%d", &a);
printf("\nEnter number2: ");
scanf("%d", &b);
c = a + b;
printf("\n\nYour sum is %d", c);
getch();
}
No comments:
Post a Comment