質問編集履歴
8
test
CHANGED
File without changes
|
test
CHANGED
@@ -3,49 +3,3 @@
|
|
3
3
|
10個の数字は打ち込めるものの、結果が出ません
|
4
4
|
|
5
5
|
教えていただけますか?
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
int main(){
|
10
|
-
|
11
|
-
int n;
|
12
|
-
|
13
|
-
int i;
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
for(i=0;i<10;i++)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
scanf("%d",&n);
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
for(i=0;i<10;i++){
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
printf("\nEven:");
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
if(n%2==0);
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
}
|
38
|
-
|
39
|
-
printf("\nOdd:");
|
40
|
-
|
41
|
-
for(i=0;i<10;i++){
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
if(n%2==1);
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
return 0;
|
50
|
-
|
51
|
-
}
|
7
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,13 +6,11 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
|
10
|
-
|
11
9
|
int main(){
|
12
10
|
|
13
|
-
|
11
|
+
int n;
|
14
12
|
|
15
|
-
|
13
|
+
int i;
|
16
14
|
|
17
15
|
|
18
16
|
|
@@ -28,6 +26,26 @@
|
|
28
26
|
|
29
27
|
|
30
28
|
|
31
|
-
printf("\nEven:");
|
29
|
+
printf("\nEven:");
|
30
|
+
|
31
|
+
|
32
32
|
|
33
33
|
if(n%2==0);
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
printf("\nOdd:");
|
40
|
+
|
41
|
+
for(i=0;i<10;i++){
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
if(n%2==1);
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
return 0;
|
50
|
+
|
51
|
+
}
|
6
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,10 +30,4 @@
|
|
30
30
|
|
31
31
|
printf("\nEven:");
|
32
32
|
|
33
|
-
if(
|
33
|
+
if(n%2==0);
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
}
|
38
|
-
|
39
|
-
printf("\nOdd:");
|
5
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
4
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
3
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,20 +36,4 @@
|
|
36
36
|
|
37
37
|
}
|
38
38
|
|
39
|
-
printf("\nOdd:"); for(i=0;i<10;i++){
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
if(i%2==1);
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
}
|
48
|
-
|
49
|
-
printf("\n");
|
39
|
+
printf("\nOdd:");
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
return 0;
|
54
|
-
|
55
|
-
}
|
1
改行
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,9 @@
|
|
10
10
|
|
11
11
|
int main(){
|
12
12
|
|
13
|
+
|
14
|
+
|
13
|
-
|
15
|
+
int n; int i;
|
14
16
|
|
15
17
|
|
16
18
|
|