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.
Ranges
Between two numbers
Report a typo
Sample Input 1:
20
10
30Sample Output 1:
trueSample Input 2:
50
25
45Sample Output 2:
falseWrite a program in Kotlin
fun main() {
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.