Write a program that reads five integer numbers. The first and the second numbers create one range, and the third and the fourth ones create another range. Output true if the fifth number is in at least one of these ranges, otherwise output false.
Ranges
At least one
Report a typo
Sample Input 1:
1
2
5
6
2Sample Output 1:
trueSample Input 2:
0
5
6
8
10Sample 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.