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

質問編集履歴

2

ソースを変更しました!

2018/12/13 10:54

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -10,13 +10,15 @@
10
10
  ```c
11
11
  #include <stdio.h>
12
12
 
13
+ #include <stdio.h>
14
+
13
15
  int main(void)
14
16
  {
15
17
  int score;
16
18
  printf("点数を入力してください:");
17
- scanf("%d" ,&score);
19
+ scanf("%d",&score);
18
20
  if(score > 100) score = 100;
19
- printf("点数は %d点です\n",score);
21
+ printf("点数は%d点です\n",score);
20
22
  return 0;
21
23
  }
22
24
 

1

コードを追加!

2018/12/13 10:53

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -5,4 +5,19 @@
5
5
  100~200の合計は15150です。」
6
6
  と出てくるはずなのですがCode is already runningと右下に出てしまい実行されません。
7
7
  まだ初心者なものですいません。
8
- 原因を教えてください!
8
+ 原因を教えてください!
9
+
10
+ ```c
11
+ #include <stdio.h>
12
+
13
+ int main(void)
14
+ {
15
+ int score;
16
+ printf("点数を入力してください:");
17
+ scanf("%d" ,&score);
18
+ if(score > 100) score = 100;
19
+ printf("点数は %d点です\n",score);
20
+ return 0;
21
+ }
22
+
23
+ ```