Advertisement
Spocoman

07. Centuries to Minutes

Jan 16th, 2022
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(input) {
  2.    
  3.     let days = Math.trunc(input * 100 * 365.2422);
  4.     console.log(`${input} centuries = ${input * 100} years = ${days} days = ${days * 24} hours = ${days * 1440} minutes`)
  5.  
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement