Inbetween

Report a typo

Write a program that reads three integer numbers and prints true if the first number lies between the second and third one (inclusive). Otherwise, it is to print false.

The sorting order of the two last arguments can be any.

Sample Input 1:

3
3
3

Sample Output 1:

true

Sample Input 2:

40
30
50

Sample Output 2:

true

Sample Input 3:

40
100
20

Sample Output 3:

true
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic