Given a floating point number X and another 6 floating point numbers a, b, c, d, e, f. Find how many numbers from the 6 numbers are smaller than X and how many of them are bigger than X. There will not be any of the 6 numbers equal to X.
The output should be two lines, see the examples for the output format.
5.5 1.12 12.4 18.9 9.0 5.25 4.77
3 numbers are smaller than 5.5 3 numbers are bigger than 5.5
1.12, 5.25 and 4.77 are smaller than 5.5
12.4, 18.9 and 9.0 are bigger than 5.5
10.1 15.2 2.1 16.7 13.9 14.2 20.2
1 numbers are smaller than 10.1 5 numbers are bigger than 10.1
only 2.1 is smaller than 10.1
15.2, 16.7, 13.9, 14.2 and 20.2 are bigger than 10.1
99.9 1.2 12.5 105.5 200.2 55.5 44.2
4 numbers are smaller than 99.9 2 numbers are bigger than 99.9
1.2, 12.5, 55.5 and 44.2 are smaller than 99.9
105.5 and 200.2 are bigger than 99.99
Test your solution here
when it passes, copy it and submit it here so your coach can grade it.