Skip to content

Commit 651959b

Browse files
committed
Script para pasar minutos a horas
1 parent a19e124 commit 651959b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎scripts/horas.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from math import floor
2+
3+
def minutestohours(minutes):
4+
print ("{} horas y {} minutos".format(floor(minutes/60) , minutes%60))
5+
6+
def main():
7+
minutos = int(input("inserte minutos"))
8+
minutestohours(minutos)
9+
10+
11+
main()
12+

0 commit comments

Comments
 (0)