110./*Write a program to print the numbers of sum*/
#include"stdio.h"
#include"conio.h"
int sum(int,int); /*function declaration*/
main()
{
int i=0,j=0,tot;
clrscr();
sum(i,j); /*function call*/
printf("Enter two value");
scanf("%d%d",&i,&j);
tot=sum(i,j);
printf("SUM=%d",tot);
getch();
}
int sum(int a,int b) /*function defination*/
{
int u;
u=a+b;
return(u);
}
No comments:
Post a Comment