Numbers in ascending order. Given three different integers, print YES if they’re given in ascending order, print NO otherwise.
Input |
Correct answer |
3 |
YES |
5 |
NO |
10 |
NO |
-5 |
YES |
1 |
YES |
Python, Java
Numbers in ascending order. Given three different integers, print YES if they’re given in ascending order, print NO otherwise.
Input |
Correct answer |
3 |
YES |
5 |
NO |
10 |
NO |
-5 |
YES |
1 |
YES |