Question: C Programming help! Write a program that reads a sequence of integers until 0 and prints the second greatest value. The output will be a
C Programming help!
Write a program that reads a sequence of integers until 0 and prints the second greatest value. The output will be a single number. For example, for input 2 3 5 5 0, the program prints 3. If the second greatest value does not exist, the program will print No second maximum.
Example of input: 10 2 4 5 8 3 6 0
Corresponding output: 8
Example of input: 7 7 0
Corresponding output: No second maximum
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
