100-days-of-rust/Week-01/Day-01_Convert-Ages-To-Days
2024-07-26 16:03:54 +02:00
..
convert_ages_to_days Wrote program for Day 1 2024-07-26 16:03:54 +02:00
README.md Add files via upload 2023-03-23 20:52:21 -04:00

Convert Age to Days

Create a function that takes the age and return the age in days.

Examples

calcAge(65) ➞ 23725

calcAge(0) ➞ 0

calcAge(20) ➞ 7300

Notes

  • Use 365 days as the length of a year for this challenge.
  • Ignore leap years and days between last birthday and now.
  • Expect only positive integer inputs.