Write a program that reads five integer numbers. The first and the second numbers create one range, the third and the fourth ones create another range. Output true if the fifth number is within both these ranges, otherwise output false.
Ranges
Within both ranges
Report a typo
Sample Input 1:
10
30
20
40
25Sample Output 1:
trueSample Input 2:
10
20
30
40
25Sample 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.