Question: Function PrintTime() takes one integer parameter. Define the second PrintTime() function to take two integer parameters, hours and minutes. The second function prints the following
Function PrintTime() takes one integer parameter. Define the second PrintTime() function to take two integer parameters, hours and minutes. The second function prints the following in order, all on one line:
"Total "
the first parameter
" hours and "
the second parameter
" minutes"
End with a newline.
Ex: If the input is 2 17, then the output is:
Total 2 hours Total 2 hours and 17 minutes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
