質問編集履歴
1
-----------
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
------------------------------------------------------------
|
test
CHANGED
@@ -1,23 +1 @@
|
|
1
|
-
この実行結果が分からないです
|
2
|
-
|
3
|
-
public class ex03 {
|
4
|
-
|
5
|
-
public static void main(String[] args){
|
6
|
-
|
7
|
-
int a = 4, sum = 0;
|
8
|
-
|
9
|
-
while(a > 0){
|
10
|
-
|
11
|
-
sum += a;
|
12
|
-
|
13
|
-
System.out.println(“a=” +a+ “, sum=” +sum);
|
14
|
-
|
15
|
-
a --;
|
16
|
-
|
17
|
-
}
|
18
|
-
|
19
|
-
|
1
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
20
|
-
|
21
|
-
}
|
22
|
-
|
23
|
-
}
|