Computer Science, asked by sarvankumar1420, 8 months ago

write an algorithm to convert the given minutes into hours and day​

Answers

Answered by daraasif958
0

Answer:

division

Explanation:

we have to divide by 24 if we have to convert hours into days

Answered by TheInnocentSoul
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