@eeflores/

scanf-test

C

No description

fork
loading
Files
  • main.c
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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: \n");
scanf("%d %d",&a,&b);
int r;
r=add(a,b);
printf("result is %d\n",r);
return 0;
}
int add(int d,int e)
{
int c;
c=d+e;
//("result is %d",c);
return c;
}