Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. package com.company.Visokos;
  2.  
  3. import java.io.BufferedReader;
  4. import java.io.InputStreamReader;
  5.  
  6. /**
  7. * Created by promoscow on 04.12.16.
  8. */
  9. public class Visokos {
  10. public static void main(String[] args) throws Exception {
  11. BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
  12. int a = 365;
  13. int x = Integer.parseInt(r.readLine());
  14. if (x % 4 == 0) a = 366;
  15. if ((x % 100 == 0) && (x % 400 != 0)) a = 365;
  16. System.out.println("количество дней в году: " + a);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement