Computer Science, asked by khushbuminz0706, 4 months ago

Write a program to read a time in minutes and split it into days, hours and minutes​

Answers

Answered by divyaaptekar33
2

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