Can any1 pls help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can any1 pls help me

You are given a sequence of integers as input, terminated by -1. (That is, the input integers may be positive, negative or 0.A-1 in the input signals the end of the input.) -1 is not considered as part of the input Find the second largest number in the input. You may not use arrays. https://code.sololearn.com/cJ6k63dqrNg8/?ref=app

11th Sep 2018, 9:52 AM
Nilutpol Kashyap
Nilutpol Kashyap - avatar
6 Answers
+ 1
We normally don't write people's programs. If you code something and it is broken, we will fix it.
11th Sep 2018, 4:37 PM
John Wells
John Wells - avatar
+ 1
Do you know how to find the largest? It is similar to that, except you need a second variable for the second highest.
11th Sep 2018, 4:44 PM
John Wells
John Wells - avatar
11th Sep 2018, 5:51 PM
John Wells
John Wells - avatar
+ 1
thanx a lot sir John Wells . I have passed my assignment with 100 marks.
11th Sep 2018, 6:09 PM
Nilutpol Kashyap
Nilutpol Kashyap - avatar
0
John Wells I know that. I just want to understand the concept behind it. I am not able to write the correct program.
11th Sep 2018, 4:41 PM
Nilutpol Kashyap
Nilutpol Kashyap - avatar
0
John Wells I have written a code for the program. Can you pls help me out by sorting out the errors????? thank you https://code.sololearn.com/cJ6k63dqrNg8
11th Sep 2018, 5:28 PM
Nilutpol Kashyap
Nilutpol Kashyap - avatar