Question: I cannot get my program to replace the currentMax and currentMin variables with the highest and lowest user-entered values (called userValue), respectively. I am not
I cannot get my program to replace the currentMax and currentMin variables with the highest and lowest user-entered values (called userValue), respectively. I am not even 100% sure it is checking the userValue variable for every integer entered by the user.
Thank you in advance!

Here is the code I wrote that I am struggling to correct.


Example of current output:

Question 3 Use two functions, [return type] highest (currentMax, input) current Max needs to be set to -inf initially [currentMax = INT_MIN] [return type] lowest (currentMin, input) currentMin needs to be set to inf initially [currentMin = INT_MAX] Write a program that prompts users for N integers and determines then displays the integer with the highest/lowest value. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
