naveen
New Coder
C:
//after i run this code it asks for 1 more value to enter after entering values of a and b
#include<stdio.h>
#include<stdlib.h>
int add(int,int);//function prototype
int main()
{
int a,b;
printf("enter the values of a and b");
scanf("%d %d ",&a,&b);
int r;
r=add(a,b);
printf("result is %d",r);
return 0;
}
int add(int d,int e)
{
int c;
c=d+e;
//("result is %d",c);
return c;
}
Last edited by a moderator: