correctly calculates and prints out leap years given user input year range