Computer Science, asked by tishakatoch186, 20 days ago

Write a program that asks the user for an hour between 1and12 , asks them to enter am or pm, and asks them how many hours into the future they want to go. Print out what the hour will be that many hours into the future, printing am or pm as appropriate.

Answers

Answered by r3j1ongkur
0

Answer:

in python program:

new_hour = new_hour % 12 if new_hour % 12 != 0 else 12

print(new_hour)

Explanation:

hope you got your answere.

Similar questions