Computer Science, asked by rksharmabhu1871, 11 months ago

edhesive 2.3 code practice question 3

Answers

Answered by 23motryukviktor
1

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