K = int(input())
hours = 0
minutes = 0
if K >= 3600:
hours = K // 3600
K = K%3600
if K >= 60:
minutes = K // 60
K = K%60
print("Hours: ", hours)
print("Minutes: ", minutes)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
K = int(input())
hours = 0
minutes = 0
if K >= 3600:
hours = K // 3600
K = K%3600
if K >= 60:
minutes = K // 60
K = K%60
print("Hours: ", hours)
print("Minutes: ", minutes)