package com.javarush.task.task04.task0414;
/*
Количество дней в году
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int input = scan.nextInt();
if (input%4 > 0){
int x = 365;
System.out.print("количество дней в году: " + x);
}
else {
int x = 366;
System.out.print("количество дней в году: " + x);
}
//напишите тут ваш код
}
}
package com.javarush.task.task04.task0414;
/*
Количество дней в году
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int input = scan.nextInt();
if (input%4 > 0){
int x = 365;
System.out.print("количество дней в году: " + x);
}
else {
int x = 366;
System.out.print("количество дней в году: " + x);
}
//напишите тут ваш код
}
}