Write a program that take N integer number as input and display the second largest value but doesn't use the array.
home / developersection / forums / write a program that take n integer number as input and display the second largest value.
Write a program that take N integer number as input and display the second largest value but doesn't use the array.
Ravi Vishwakarma
08-Nov-2021First of all,
what is second largest value, like we have 5 number of a series 12,45,78,15,23. in this series 78 is the first largest value, 45 is the second largest value, and 23 is the third largest value so on.
Program
Output: