Between two numbers

Report a typo

Write a program that reads three integer numbers and prints true if the first number is between the second and the third ones (inclusive). Otherwise, it is to print false. The second number is always less than the third one. Use ranges to solve the problem.

Sample Input 1:

20
10
30

Sample Output 1:

true

Sample Input 2:

50
25
45

Sample Output 2:

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

Create a free account to access the full topic