#include #include using namespace std; inline int average(int a, int b) //function declaration and definition { return (a + b) / 2; } int main() { int i = 10; int j = 20; int k = average(i, j); cout << average(j, 40) << "\n"; return EXIT_SUCCESS; }