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
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