109./*Write
a program to find out the sum of two numbers use of two Argument*/
#include<stdio.h>
#include<conio.h>
int add(int,int);
void main()
{
int x,y,sum;
clrscr();
add(x,y);
printf("Enter two
numbers:\n");
scanf("%d%d",&x,&y);
sum=add(x,y);
printf("The sum of two numbers
is: %d",sum);
getch();
}
int add(int a,int b)
{
int c;
c=a+b;
return c;
}
OUTPUT
Enter two
numbers :
5
18
The sum of
two numbers is : 23
No comments:
Post a Comment