Write a program to read a time in minutes and split it into days, hours and minutes
Answers
Answered by
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
Math,
2 months ago
Computer Science,
2 months ago
Hindi,
2 months ago
English,
4 months ago
English,
4 months ago