上传了实验一,已确认无敏感信息

This commit is contained in:
2024-06-10 16:32:06 +08:00
parent 095dd58204
commit 729de600bd
4 changed files with 52 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import java.util.Scanner;
public class task3 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int year = input.nextInt();
System.out.println(year + "年是否为闰年:" + ((year % 4 == 0) | (year % 400 == 0)));
}
}