Question03 01-04

This commit is contained in:
2026-09-11 16:24:14 +09:00
parent db136573ab
commit 471943fb37
4 changed files with 26 additions and 2 deletions

View File

@@ -9,7 +9,8 @@ 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でも割り切れます。");
}
}