Write a program to add two integer without prototyping and saving in C extension.

#include
#include
main()
{

int a,b,c;
clrscr();

printf(“nEnter the first number:”);
scanf(“%d”,&a);

printf(“nEnter the second number:”);
scanf(“%d”,&b);

c=sum(a,b);
printf(“n Addition of %d and %d is: %d”,a,b,c);
getch();
}

int sum(int x,int y)
{
int z;
z=x+y;
return(z);
}

Leave a reply