Question: Write a C++ program without using arrays, to find the range of N numbers that given from the user, and carries out the following:
Write a C++ program without using arrays, to find the range of N numbers that given from the user, and carries out the following: 1. Find the largest element of these numbers. 2. Find the smallest element of these numbers. 3. Find the Range of these numbers. Hint: Range Largest-smallest Sample Output: How many numbers you want to enter?? S Enter number 1: 56 Enter number 2 34 2 Enter number 3 Enter number 4 89 Enter number 5 65 The largest number is The smallest number is The RANGE 15-87 89 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
