Skip to content

Commit

Permalink
Update APCalendar.java
Browse files Browse the repository at this point in the history
  • Loading branch information
alzhang17 authored Apr 30, 2024
1 parent 2cda188 commit bd7a5f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/APCalendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private static boolean isLeapYear(int year)
public static int numberOfLeapYears(int year1, int year2)
{
int leapYears = 0;
for(int i = years1; i <= years2; i++){
for(int i = year1; i <= year2; i++){
if(isLeapYear(i))
leapYears++;
}
Expand Down

0 comments on commit bd7a5f3

Please sign in to comment.