Computer Science, asked by souryasingh24530, 2 days ago

write a program to input the first number and the last number and print the number between them.​

Answers

Answered by Anonymous
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