Imagine there are three boys in the sports class.
You need to write a program that checks if the boys are arranged in ascending or descending order by height. The program is to read three integer numbers h1
, h2
, h3
and to output true
or false
. If boys have the same height, they are considered to be correctly arranged.