import java.util.*;
public class JAVA69{
public static void main(String[] args){
Scanner cin=new Scanner(System.in);
while(cin.hasNext()){
int a = cin.nextInt(),b= a%4,c = a%100,d = a%400;
if(a>0 && (a%4==0 && a%100!=0 || a%400==0))
System.out.println("a leap year");
else if(a==0)
System.out.println(" ");
else
System.out.println("a normal year");
}
}
}
我多打了 System.out.println(" ");
可是不打 " "
要怎麼結束!! 請各位大大幫忙 感恩感恩!!
import java.util.*;
public class JAVA69{
public static void main(String[] args){
Scanner cin=new Scanner(System.in);
while(cin.hasNext()){
int a = cin.nextInt(),b= a%4,c = a%100,d = a%400;
if(a>0 && (a%4==0 && a%100!=0 || a%400==0))
System.out.println("a leap year");
else if(a==0)
System.out.println(" ");
else
System.out.println("a normal year");
}
}
}
我多打了 System.out.println(" ");
可是不打 " "
要怎麼結束!! 請各位大大幫忙 感恩感恩!!
import java.util.*;
public class JAVA69{
public static void main(String[] args){
Scanner cin=new Scanner(System.in);
while(cin.hasNext()){
int a = cin.nextInt(),b= a%4,c = a%100,d = a%400;
if(a>0 && (a%4==0 && a%100!=0 || a%400==0))
System.out.println("a leap year");
else if(a==0)
System.out.println(" ");
else
System.out.println("a normal year");
}
}
}
我多打了 System.out.println(" ");
可是不打 " "
要怎麼結束!! 請各位大大幫忙 感恩感恩!!