Question: Exercise #2: Maximum/Minimum using (for loop) Write a program that prompts for an integer N. The program reads N numbers, finds, and prints the maximum

 Exercise #2: Maximum/Minimum using (for loop) Write a program that prompts

Exercise #2: Maximum/Minimum using (for loop) Write a program that prompts for an integer N. The program reads N numbers, finds, and prints the maximum and minimum numbers among the N numbers. Sample input/output: How many numbers do you want to enter: 5 Enter 5 numbers Number: 1 20 Number: 2 10 Number: 3 30 Number: 4 68 Number: 5 56 The maximum number is: 68 The minimum number is:10

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 Databases Questions!