Computer Science, asked by srushti293, 10 months ago

Edhesive 2.3 Code Practice: question 3

Answers

Answered by 23motryukviktor
0

Answer:

hour = int(float(input("Enter the hour: ")))

minute = int(float(input("Enter the minute: ")))

minuteTotal = int(minute + 15)

addHour = int(minuteTotal/60)

hourTotal = int(hour) + int(addHour)

minuteFinal = int(minuteTotal % 60)

hourFinal = int((hourTotal - 1) % 12 +1)

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

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

Explanation:

Similar questions