Ad
  • Default User Avatar

    Because the first year corresponds to 15, the second to 9, and the subsequent years to 4 for cats or 5 for dogs. We exclude the initial two years from the calculation and focus on the remaining. If, for instance, humanYears = 10, we can subtract the initial two years (10-2) to get 8, which is then multiplied by 4 or 5.

  • Default User Avatar

    it's a loop, you can google what a loop is