The question ask to display the number of leap years found along with the years. Where in the program it only shows the years not the count. System.out.print(year + (count % 10 == 0 ? "\n" : " "));