質問編集履歴

4

2021/07/10 15:47

投稿

yusuke_3_17_yu
yusuke_3_17_yu

スコア2

test CHANGED
File without changes
test CHANGED
File without changes

3

2021/07/10 15:47

投稿

yusuke_3_17_yu
yusuke_3_17_yu

スコア2

test CHANGED
File without changes
test CHANGED
File without changes

2

2021/07/10 15:47

投稿

yusuke_3_17_yu
yusuke_3_17_yu

スコア2

test CHANGED
File without changes
test CHANGED
@@ -5,3 +5,33 @@
5
5
  キーボードからの文字列入力とfor文とifを使うい書きましたが、どうしても上手くいきません。
6
6
 
7
7
  教えて頂きたいです。どうか宜しくお願い致します。
8
+
9
+
10
+
11
+ public class Keisan {
12
+
13
+   public static void main(String[] args) {
14
+
15
+
16
+
17
+ for(int i = 1; i <= 10; i++) {
18
+
19
+ String n = new java.util.Scanner(System.in).nextLine();
20
+
21
+ String name += n;
22
+
23
+     if(i == 10) {
24
+
25
+ System.out.println(name + "です。");
26
+
27
+ }
28
+
29
+ }
30
+
31
+ }
32
+
33
+
34
+
35
+
36
+
37
+ }

1

2021/07/10 15:47

投稿

yusuke_3_17_yu
yusuke_3_17_yu

スコア2

test CHANGED
File without changes
test CHANGED
File without changes