@Pegula00
Posted
Looks cool but check a bit the error handling and the calculations. For example, it calculates like there is no error if I put in 31st of February as input, and we know that February can have maximum of 29 days and that is on a leap year.
Also, if we put in the year 2024. it preforms the calculation even the date is in the future, if we input month lower than 1 and higher than 12 there is also no error. If we input the date 1/1/0 it says it was 23 years ago.
Hope this helped to improve your code a bit! :)
Marked as helpful