Answer:
In Python:
speed = float(input("Speed: (mile/hr): "))
time = int(input("Time: (hr): "))
for hour in range(1,time+1):
distance = speed * hour
print("Distance: "+str(speed)+"*"+str(hour)+" = "+str(distance))
Step-by-step explanation:
This prompts the user for speed in mile/hr
speed = float(input("Speed: (mile/hr): "))
This prompts the user for time in hr
time = int(input("Time: (hr): "))
This iterates through the input time
for hour in range(1,time+1):
This calculates the distance covered in each hour
distance = speed * hour
This prints the distance covered in each hour
print("Distance: "+str(speed)+"*"+str(hour)+" = "+str(distance))