Question02,03完了

This commit is contained in:
m-endo
2026-09-11 16:12:12 +09:00
parent ffce06d1ae
commit 6f29122307
16 changed files with 59 additions and 18 deletions

View File

@@ -14,15 +14,15 @@ public class PTra02_01 {
int rem;
// TODO 6+2を計算して結果を変数sumに代入してください
sum = 6 + 2;
// TODO 6-2を計算して結果を変数diffに代入してください
diff = 6 -2;
// TODO 6×2を計算して結果を変数mulchに代入してください
mulch = 6 * 2;
// TODO 6÷2を計算して結果を変数divに代入してください
div = 6 / 2;
// TODO 17÷5の余りを計算して変数remに代入してください
rem = 17 % 5;
// 各変数の表示(編集しないでください)
// ※ 8, 4, 12, 3, 2の順で表示されれば正解です
System.out.println("変数sum :" + sum);