simeonshopov

Centuries into minutes

Nov 25th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. import math
  2. century = int(input())
  3. years = century * 100
  4. days = math.floor(years * 365.2422)
  5. hours = days * 24
  6. minutes = hours * 60
  7.  
  8. print(f'{century} centuries = {years} years = {days} days = {hours} hours = {minutes} minutes')
Advertisement
Add Comment
Please, Sign In to add comment