Wynik wyświetla poprawny, a zadanie nie zaliczone. O co chodzi ?
====================================
The output is correct but the exercise is not passed. Why ?
package pl.codegym.task.task04.task0414;
import java.util.Scanner;
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int rok = scanner.nextInt();
int spr1 = rok % 400;
// int spr2 = rok % 100;
int spr3 = rok % 4;
if (spr1 ==0 || spr3 == 0 && rok != 2100 && rok != 2200 && rok != 2300){
int x = 366;
System.out.println("Liczba dni w roku: " + x);
} else if (rok == 2100 || rok == 2200 || rok == 2300) {
int x = 365;
System.out.println("Liczba dni w roku: " + x);
} else {
int x = 365;
System.out.println("Liczba dni w roku: " + x);
}
}
}