Question: 2. Write a program that reads decimal numbers from the keyboard. Find and display the smallest number, the second smallest number, and the third
2. Write a program that reads decimal numbers from the keyboard. Find and display the smallest number, the second smallest number, and the third smallest number of the set. The program ends if the largest number encountered does not change for n iterations (the largest number does not change for the next n numbers since it changed). The value of n is read from the keyboard.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
