Elements in the Range
You are given three numbers. Check if any of the numbers exist in the range from 10 to 20 (including 10 and 20).
The first, second, and third lines of input are integers.
The output should be either
Given
a = 2, b = 4, c = 16, 16 is in the range between 10 and 20.So the output should be
True
a = int(input())
b = int(input())
c = int(input())
print(10 <= a <= 20 or 10 <= b <= 20 or 10 <= c <= 20)
Comments
Leave a comment