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 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
Get step-by-step solutions from verified subject matter experts
