loading
open in
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdio.h>

int addNumbers(int a, int b);

int main ()
{
  int n1 = 2;
  int n2 = 3;
  int sum;
  sum = addNumbers(n1, n2);
// function call
  printf ("%d",sum);
  
  return 0 ;
}

int addNumbers (int a, int b)
// function definition
{
  int result;
  result = a + b;
  return result;
// return statement
}