From 9072735cdcd3ac97c8621f41de25ce1f6fceacfe Mon Sep 17 00:00:00 2001 From: s-ikeda <26-s-ikeda-tmn@it-college.co.jp> Date: Mon, 14 Sep 2026 14:24:05 +0900 Subject: [PATCH] Question04-02 --- Question04-while/src/PTra04_02.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Question04-while/src/PTra04_02.java b/Question04-while/src/PTra04_02.java index 4ce7b65..a0b9360 100644 --- a/Question04-while/src/PTra04_02.java +++ b/Question04-while/src/PTra04_02.java @@ -16,5 +16,13 @@ public class PTra04_02 { * ※ 繰り返しにはwhile文を用いてください */ + while (num <= 1000) { + //num = num * 2; + + num *= 2; + + System.out.println(num); + } + } }