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

This commit is contained in:
2024-06-10 16:33:43 +08:00
parent 729de600bd
commit f1190f2c2f
6 changed files with 104 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
public class task4 {
public static void main(String[] args) {
int time = 0;
for (int i = 1; i <= 100; i++) {
if (i % 6 == 0) {
System.out.print(i + " ");
time += 1;
}
}
System.out.println();
System.out.println(time);
}
}