Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 300 Bytes

(8 kyu) Twice as old.md

File metadata and controls

10 lines (6 loc) · 300 Bytes

Twice as old (8 kyu)

https://www.codewars.com/kata/5b853229cfde412a470000d0

Your function takes two arguments:

  1. current father's age (years)
  2. current age of his son (years)

Сalculate how many years ago the father was twice as old as his son (or in how many years he will be twice as old).