Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company.Visokos;
- import java.io.BufferedReader;
- import java.io.InputStreamReader;
- /**
- * Created by promoscow on 04.12.16.
- */
- public class Visokos {
- public static void main(String[] args) throws Exception {
- BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
- int a = 365;
- int x = Integer.parseInt(r.readLine());
- if (x % 4 == 0) a = 366;
- if ((x % 100 == 0) && (x % 400 != 0)) a = 365;
- System.out.println("количество дней в году: " + a);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement