Skip to content

Commit 1d9299d

Browse files
Problem Solved
1 parent f48d64b commit 1d9299d

File tree

1 file changed

+17
-0
lines changed
  • String/Codeforwin exercises

1 file changed

+17
-0
lines changed

String/Codeforwin exercises/p_29.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <stdio.h>
2+
3+
int sum (int first_operand, int second_operand)
4+
{
5+
return first_operand + second_operand;
6+
}
7+
8+
int main ()
9+
{
10+
int a, b;
11+
scanf("%d%d", &a, &b);
12+
13+
printf("Sum: %d", sum(a, b));//function with arguments and returns value
14+
15+
16+
return 0;
17+
}

0 commit comments

Comments
 (0)