In: Computer Science
Write a program to calculate the time to run 5 miles, 10 miles, half marathon, and full marathon if you can run at a constant speed. The distance of a half marathon is 13.1 miles and that of a full marathon is 26.2 miles. Report the time in the format of hours and minutes. Your program will prompt for your running speed (mph) as an integer.
Write a program that displays the Olympic rings. Color the rings in the Olympic colors
Both questions are in python

speed = int(input("Enter your running speed(mph): "))
time = 5/speed
hours = int(time)
minutes = int((time - hours) * 60)
print("To run 5 miles it takes " + str(hours) + " hours and " + str(minutes) + " minutes")
time = 10/speed
hours = int(time)
minutes = int((time - hours) * 60)
print("To run 10 miles it takes " + str(hours) + " hours and " + str(minutes) + " minutes")
time = 13.1/speed
hours = int(time)
minutes = int((time - hours) * 60)
print("To run half marathon it takes " + str(hours) + " hours and " + str(minutes) + " minutes")
time = 26.2/speed
hours = int(time)
minutes = int((time - hours) * 60)
print("To run a marathon it takes " + str(hours) + " hours and " + str(minutes) + " minutes")

