every thing is fine but the last two conditions is not getting verified help me out! :(
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 {
BufferedReader bor = new BufferedReader(new InputStreamReader(System.in));
String no= bor.readLine();
int num = Integer.parseInt(no);
if(num % 100 != 100)
System.out.println("Number of days in the year:366");
else
if(num % 400 != 400)
System.out.println("Number of days in the year:365");
else
if(num % 4 != 0)
System.out.println("Number of days in the year:366");
else
System.out.println("Number of days in the year:365");
}
}