Question: 7. A user inputs a positive integer, n. Write a program that would take 'n' number of further inputs from the user. After taking

7. A user inputs a positive integer, n. Write a program that

 

7. A user inputs a positive integer, n. Write a program that would take 'n' number of further inputs from the user. After taking the inputs, write a program that would display the maximum and minimum of the inputs. Sample Input: Enter total numbers that you would like to input: 4 Enter a number: 1 Enter a number: 2 Enter a number: -13 Enter a number: 0 Sample Output: Maximum: 2 Minimum: -13

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!