質問編集履歴

1

文章の訂正

2019/07/04 10:40

投稿

taromtia
taromtia

スコア18

test CHANGED
File without changes
test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  int x;
28
28
 
29
- int a[10];
29
+ int a[5];
30
30
 
31
31
  int i=0,sum=0;
32
32
 
@@ -34,7 +34,7 @@
34
34
 
35
35
  scanf("%d",&x);
36
36
 
37
- if(x>0&&x<=10){
37
+ if(x>0&&x<=5){
38
38
 
39
39
  a[i]=x;
40
40
 
@@ -44,7 +44,7 @@
44
44
 
45
45
  }
46
46
 
47
- }while(i>9);
47
+ }while(i>4);
48
48
 
49
49
  printf("%d\n",sum);
50
50