By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,589 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

How to find fifth biggest number among others

P: 1
I should write a program tha inputs ten int numbers, and print the fifth biggest number among them.
For example:

Enter numbers: 50 83 12 37 17 75 52 12 11 88

The fifth biggest number: 50
Jun 16 '17 #1
Share this Question
Share on Google+
1 Reply


P: 6
Hi Ismoilov52.

An easy way to do this would be to store the inputs in a list and use sorting to sort the numbers in ascending or descending order.
Jun 16 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.