Write two functions findMax(x, y)
,
which returns the larger of the two values, and findMin(x, y)
, which returns the smaller of the two values.
Write a main method that accepts two inputs, and then calls the two methods. It should print the results of both functions.
Your submission should include basic pseudocode for the program and both functions.