Answer:
The program in Python is as follows:
num1 = int(input())
num2 = int(input())
if num2 < num1:
print("Second integer can't be less than the first.")
else:
for i in range(num1,num2+1,5):
print(i,end=" ")
Step-by-step explanation:
This gets the first integer from the user
num1 = int(input())
This gets the second integer from the user
num2 = int(input())
If the second is less than the first, the following prompt is printed
if num2 < num1:
print("Second integer can't be less than the first.")
If otherwise, the number between the intervals is printed with an increment of 5
else:
for i in range(num1,num2+1,5):
print(i,end=" ")