Question: Write a program to create a list of ' N ' numbers from user input. From the list, find the 2 nd largest number and

Write a program to create a list of 'N' numbers from user input. From the list, find the 2nd largest number and print the output. If only 1 number is present in the list, print '-inf'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!