Sorting three numbers

  • 8
  • Locked
Planet Linear Chaos is populated by isomorphs. They are believed to have invented sorting algorithms. Everything in their heads is extremely well-ordered. They only issue planetary visas to people who know at least 7 sorting algorithms. Let's take our first step toward Linear Chaos: Read three numbers from the keyboard, put them in descending order, and then display them on the screen.
You can't complete this task, because you're not signed in.
Comments (43)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 9 , Milan, Italy
19 October 2022, 15:44
after 5 attempts i solved.... put the equals "=" in the right place
Sharon de Jong
Level 7 , Netherlands
23 September 2022, 17:43
Good exercise, though I feel the instructions could have been more explicit on what to do when the numbers are the same.
Level 15 , United States of America, United States
5 January 2022, 22:59
Something is wrong! it keeps asking me to put them in descending order while they are in descending order.
Steve C. Ands
Level 10 , Medellín, Colombia
2 December 2021, 18:07
Level 41
6 December 2021, 09:35
Show me your code, please
Level 9 , Miami, United States
17 July 2021, 22:43
I'm always over-thinking the solution.....I know there is probably a more efficient way of solving these however we need to stick to the lesson. So....if - else if...
Level 11 , Dugo Selo, Croatia
15 July 2021, 17:41
I solved task with IF ELSE statement only!
Usman Full Stack Developer at QA
27 June 2021, 21:19
sorted via a temporary variable here
Level 8 , Versailles, France
21 June 2021, 21:24
succeeded with Arrays.sort here
Level 8 , Hutton Bushel, United Kingdom
26 April 2021, 19:07
if you use Math.max and Math.min and find the medium ,you wont need to write alot of codes.
Ice_ Beam
Level 7 , Germany
17 April 2021, 16:51
This one was a bit tough, not impossible though. I recommend if you are not familiar with arrays yet, use nested if else and <= or >= .