teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

誤字

2021/06/25 14:59

投稿

gm71
gm71

スコア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+ 5*n;
11
+ num =num+ 3*n;
12
12
  n++;
13
13
  }
14
14
  System.out.print(num);

2

誤字

2021/06/25 14:59

投稿

gm71
gm71

スコア3

title CHANGED
@@ -1,1 +1,1 @@
1
- Java while文について 100以の時にループ処理を行う。
1
+ Java while文について 100以の時にループ処理を行う。
body CHANGED
File without changes

1

誤字脱字

2021/06/25 14:38

投稿

gm71
gm71

スコア3

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 count=0;
9
+ int n=0;
10
10
  while( num <= 100 ) {
11
- num =num+ 5*count;
11
+ num =num+ 5*n;
12
- count++;
12
+ n++;
13
13
  }
14
14
  System.out.print(num);
15
15
  }