Create a program to check whether a given number exists in the range.
Answers
Answered by
1
Answer:
n = int(input("Enter a number :\n")
r = int(input("Enter the range :\n")
for i in range(r):
if n ==i:
print(f"The number {n} exists in the given range")
Explanation:
It's a python program . Make sure you have python 3.7 or higher installed.
Answered by
0
Explanation:
Write a Python function
Similar questions