this program doesnt satisfy my last task condition
package com.codegym.task.task04.task0414;
/*
Number of days in the year
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
int x;
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int yr = Integer.parseInt(reader.readLine());
if (yr%4 == 0)
{
x = 366;
System.out.println("Number of days in the year: " + x);
}
if(yr%4 != 0)
{
x = 365;
System.out.println("Number of days in the year: "+ x);
}
}
}