質問編集履歴
4
タイトルの変更
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
for文 System.out
|
body
CHANGED
File without changes
|
3
不要な文の削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,14 +1,3 @@
|
|
1
|
-
1~100を10刻みで表示したいです。/n
|
2
|
-
|
3
|
-
1*********
|
4
|
-
**********
|
5
|
-
**********
|
6
|
-
・・・
|
7
|
-
*********100
|
8
|
-
|
9
|
-
fo r文では表示出来たのですが、while文が出来ないです。
|
10
|
-
|
11
|
-
自身の質問の仕方に問題がありました。申し訳ございません。
|
12
1
|
以下がfor文になります。
|
13
2
|
|
14
3
|
for(int i=1; i <= 100; i++){
|
2
タグの変更
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
ソースコードの不足
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,4 +6,15 @@
|
|
6
6
|
・・・
|
7
7
|
*********100
|
8
8
|
|
9
|
-
fo r文では表示出来たのですが、while文が出来ないです。
|
9
|
+
fo r文では表示出来たのですが、while文が出来ないです。
|
10
|
+
|
11
|
+
自身の質問の仕方に問題がありました。申し訳ございません。
|
12
|
+
以下がfor文になります。
|
13
|
+
|
14
|
+
for(int i=1; i <= 100; i++){
|
15
|
+
System.out.print(i);
|
16
|
+
if(i%10 == 0){
|
17
|
+
|
18
|
+
System.out.println();
|
19
|
+
}
|
20
|
+
}
|