Hello everyone,
Can someone have a look on this because the system doesn't let me through but I tested different years and all results are correct.
Thanks for all hints :)
package pl.codegym.task.task04.task0414;
/*
Liczba dni w roku
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int x = Integer.parseInt(reader.readLine());
if(x % 100 == 0) {
if (x % 400 == 0)
System.out.print("Liczba dni w roku: 366");
else
System.out.println("Liczba dni w roku: 365");
}
else
System.out.println("Liczba dni w roku: 365");
}
}