質問編集履歴
3
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
int n=0;
|
10
10
|
while( num <= 100 ) {
|
11
|
-
num =num+
|
11
|
+
num =num+ 3*n;
|
12
12
|
n++;
|
13
13
|
}
|
14
14
|
System.out.print(num);
|
2
誤字
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
Java while文について 100以
|
1
|
+
Java while文について 100以下の時にループ処理を行う。
|
body
CHANGED
File without changes
|
1
誤字脱字
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
String text = scan.next();
|
7
7
|
int num = Integer.parseInt(text);
|
8
8
|
|
9
|
-
int
|
9
|
+
int n=0;
|
10
10
|
while( num <= 100 ) {
|
11
|
-
num =num+ 5*
|
11
|
+
num =num+ 5*n;
|
12
|
-
|
12
|
+
n++;
|
13
13
|
}
|
14
14
|
System.out.print(num);
|
15
15
|
}
|