maybe you should listen to coder777 and me and use seconds and a for loop.
if you still want to print the minutes and hours, you can use the modulo operator "%"
if you have problems with the loops. try to set up an 10 elements array and print each element with a for, a while and a do while loop.
it will give you an idea how to change them to receive the same result.
the mudulo operator returns the rest of an integer division
so 5 % 2 is 1, since 5 - (2*2) = 1