question3です。

This commit is contained in:
2026-09-11 14:55:25 +09:00
parent cdbed31d0c
commit bf23fdd74d
4 changed files with 18 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ public class PTra03_03 {
int num = 10;
// TODO numが 2で割り切れる かつ 5で割り切れるという条件式を記述してください
if () {
if (num % 2 == 0 && num % 5 == 0) {
System.out.println(num + "は2でも5でも割り切れます。");
}
}