Build a console program that asks the user to enter an hour, a minute, and whether it's AM or PM.
Then, format and display the time in a clear, readable way—just like a digital clock.
Enter the hours value: 9 [Enter]Enter the minutes value: 30 [Enter]Enter AM or PM: AM [Enter]
Time: 9:30 AM