find second highest digit from a number ex: 8654. 6 is secong highest here. program using 2 loops or one loop only. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

find second highest digit from a number ex: 8654. 6 is secong highest here. program using 2 loops or one loop only.

find second highest number program using 2 loops

24th Oct 2017, 6:47 AM
anu
anu - avatar
5 Answers
+ 2
No offense, I was just giving suggestion, am not boss whatsoever @anu :)
24th Oct 2017, 5:58 PM
Ipang
+ 1
Can I use only one loop ?
24th Oct 2017, 7:10 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 1
By the word "find", where exactly are they supposed to try find the number, provide clear detail, in array, or what?. If this was a challenge you might need to edit your question title, at least include "[Challenge]" prefix, and "challenges" in your question tag, that way it'll be more "catchy", just a thought :)
24th Oct 2017, 8:12 AM
Ipang
+ 1
sure boss . definitely next time @Ipang
24th Oct 2017, 8:17 AM
anu
anu - avatar
0
sure @prunier
24th Oct 2017, 7:11 AM
anu
anu - avatar