Write a program to input the two number and find out the sum of two numbers in c
#include
#include
void add();
main()
{
clrscr();
add();
getch();
}
void add()
{
int x,y,sum;
printf("Enter two numbers:\n");
scanf("%d%d",&x,&y);
sum=x+y;
printf("\nThe sum of two numbers is: %d",sum);
}
No comments:
Post a Comment