Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2011
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class a004 {
  3. public static void main(String args[]) {
  4. Scanner cin = new Scanner(System.in);
  5. int year;
  6. while(cin.hasNextInt()) {
  7. year = cin.nextInt();
  8. if(year%4 == 0 && year%100 != 0 || year%400 == 0)
  9. System.out.println("้–ๅนด");
  10. else
  11. System.out.println("ๅนณๅนด");
  12. }
  13. }
  14. }
  15.  
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement