質問編集履歴

2

ソースを変更しました!

2018/12/13 10:54

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -22,6 +22,10 @@
22
22
 
23
23
 
24
24
 
25
+ #include <stdio.h>
26
+
27
+
28
+
25
29
  int main(void)
26
30
 
27
31
  {
@@ -30,11 +34,11 @@
30
34
 
31
35
  printf("点数を入力してください:");
32
36
 
33
- scanf("%d" ,&score);
37
+ scanf("%d",&score);
34
38
 
35
39
  if(score > 100) score = 100;
36
40
 
37
- printf("点数は %d点です\n",score);
41
+ printf("点数は%d点です\n",score);
38
42
 
39
43
  return 0;
40
44
 

1

コードを追加!

2018/12/13 10:53

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -13,3 +13,33 @@
13
13
  まだ初心者なものですいません。
14
14
 
15
15
  原因を教えてください!
16
+
17
+
18
+
19
+ ```c
20
+
21
+ #include <stdio.h>
22
+
23
+
24
+
25
+ int main(void)
26
+
27
+ {
28
+
29
+ int score;
30
+
31
+ printf("点数を入力してください:");
32
+
33
+ scanf("%d" ,&score);
34
+
35
+ if(score > 100) score = 100;
36
+
37
+ printf("点数は %d点です\n",score);
38
+
39
+ return 0;
40
+
41
+ }
42
+
43
+
44
+
45
+ ```