Names and values · warm-up
Hours and minutes
Read a number of minutes and print it as hours and minutes: for 135, print 2 hours and 15 minutes.
// divides and throws the remainder away; % gives just the remainder.
- right answers
Stuck on the idea rather than the code? The Names and values lesson walks through it.