import java.util.Scanner;
/**
*
* @author user
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int m;
while (sc.hasNext()){
m = sc.nextInt();
if ((m%4 == 0 && m%100 != 0) || m%400 == 0){
System.out.println("閏年");
}else
System.out.println("平年");
break;
}
}
}
一值出現WA 說沒使用WHILE迴圈輸入數太少
請大大指點名津,謝謝