write an algorithm to convert the given minutes into hours and day
Answers
Answered by
0
Answer:
division
Explanation:
we have to divide by 24 if we have to convert hours into days
Answered by
0
Answer:
Number of days = ⌊ n / (24 * 3600) ⌋
Number of Hours = ⌊ (n % (24 * 3600)) / 3600 ⌋
Number of Minutes = ⌊ (n % (24 * 3600 * 3600)) / 60 ⌋
Number of Seconds = ⌊ (n % (24 * 3600 * 3600 * 60)) / 60 ⌋
Similar questions