Using a function -- Example
nint Max(int x, int y); // function declaration 
nint Max(int x, int y) { // function implementation
n if (x > y)    return x;
n else        return y;
n }
nInt main() {
n int m = 5, n = 9;
n int z = Max(m, n); // function used in an assignment
n cout << “The larger one is : ” << z << endl;
n m = RequestInt(“Enter number 1 : “);
n n = RequestInt(“Enter number 2 : “);
n // function used in an output statement
n cout << “The larger number is : ” << Max(m, n) << endl;
n return 0;
n}
n
Explain the difference