Question: 5, Given integer variables hours and minutes (already declared and defined), write Java code to print: The time is value of hours : value of
5, Given integer variables hours and minutes (already declared and defined), write Java code to print: The time is value of hours : value of minutes Example: If hours is 10 and minutes is 45, the output should be: The time is 10:45 (For full credit, the output should be appropriate even if minutes is a single digit, e.g. if hours is 7 and minutes is 2, the output should be: The time is 7:02
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
