Ask Question

Write a program that accepts a time as an hour and minute. Add 15 minutes to the time

+3
Answers (1)
  1. 7 February, 08:45
    0
    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))
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a program that accepts a time as an hour and minute. Add 15 minutes to the time ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers