Question: Write a program that asks the user for several numbers and tells the user which number is the smallest and which one is the largest.
Write a program that asks the user for several numbers and tells the user which number is the smallest and which one is the largest. Here are two sample runs: How many numbers do you have? Enter your 4 numbers now: 10 -2 32 The largest number you entered was 55. The smallest number you entered was -2 How many numbers do you have? Enter your 3 numbers now: 0 The largest number you entered was 3. The smallest number you entered was . If there are functions built into the programming language you are using to answer this question that sort a list or give its minimum or maximum value, you may not use these functions in your solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
