close
import java.io.*;
public class question02 {
public static void main(String args[])throws IOException {
BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
System.out.print("請輸入年度:");
int input=Integer.parseInt(buf.readLine());
if (input%4==0){
if (input%100!=0){
System.out.println("閏年");
}
else{
if (input%400!=0)
System.out.println("非閏年");
else
System.out.println("閏年");
}
}
else
System.out.println("非閏年");
}
}
全站熱搜
留言列表