write a program to input the first number and the last number and print the number between them.
Answers
Answered by
0
First ask the user to input a number, twice.
Then we'll use the for loop and the range function, to find the numbers between the two input numbers and print the numbers.
a=int(input("Enter a number: "))
b=int(input("Enter a number: "))
for i in range(a+1, b):
print(i)
Similar questions
Math,
1 day ago
English,
1 day ago
Social Sciences,
2 days ago
History,
2 days ago
English,
8 months ago