- 1

How to solve this?

Random task! You need to calculate the number of hours in 888 minutes. Your program needs to output the number of hours and then the number of remaining minutes, on separate lines. For example, 72 minutes are equal to 1 hour and 12 minutes, so your program would output: 1 12

29th Aug 2021, 4:28 PM
Fahim Muhtashim
Fahim Muhtashim - avatar
2 Réponses
+ 5
Please post your attempt as well, this should be a learning experience :) P.S: there's 60 minutes in an hour, and you need to find how many hours in 888 minutes.. P.P.S: the % operator returns the remainder of two divided numbers.. Hope that helped :D
29th Aug 2021, 4:31 PM
Chloe
0
Syt->Show Your Try
29th Aug 2021, 4:33 PM
Vtec Fan
Vtec Fan - avatar