Within both ranges

Report a typo

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.

Sample Input 1:

10
30
20
40
25

Sample Output 1:

true

Sample Input 2:

10
20
30
40
25

Sample Output 2:

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

Create a free account to access the full topic