Дано число n. С начала суток прошло n минут. Определите, сколько часов и минут будут показывать элек
Python
# Считываем число минут
n = int(input("Введите количество минут, прошедших с начала суток: "))
# Рассчитываем количество часов и минут
hours = (n // 60) % 24
minutes = n % 60
# Выводим результат
print("На часах сейчас:", hours, "часов", minutes, "минут")
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.