#include<stdio.h>
#include<conio.h>
int sum(int,int); //function declaration
int main()
{
int a,b,c;
clrscr();
printf("enter any two no.s");
scanf("%d%d",&a,&b);
c=sum(a,b); //function calling
printf("the sum is %d",c);
getch();
return 0;
}
int sum(int x,int y) //function definition
{
int s;
s=x+y;
return(s);
}
0 comments:
Post a Comment