1.7k views
4 votes
Write a program that accepts a time as an hour and minute. Add 15 minutes to the time

1 Answer

2 votes

Answer:

The code is given below

hours = int(input("Enter time in hour: "))

minutes = int(input("Enter time in minute: "))

total time = (hours * 60) + (minutes + 15 )

total hours = int(total minutes / 60)

minutes = total hours/ 60

print("Hours: " + str(hours))

print("Minutes: " + str(minutes))

User Sam Baumgarten
by
6.6k points