回答編集履歴
2
retype
answer
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
```C
|
2
2
|
int i =0;
|
3
3
|
int rows = 3;
|
4
|
-
|
4
|
+
char array[rows][row] =0;
|
5
5
|
for(; i <= rows; i++) {
|
6
6
|
for(int j = 0; j <= rows; j++){
|
7
7
|
// this is c code for multiple array
|
8
|
-
scanf(%
|
8
|
+
scanf(%c, &array[i][j]);
|
9
9
|
}
|
10
10
|
}
|
11
11
|
```
|
1
something miss
answer
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
```C
|
2
2
|
int i =0;
|
3
3
|
int rows = 3;
|
4
|
+
int array[rows][row] =0;
|
4
5
|
for(; i <= rows; i++) {
|
5
6
|
for(int j = 0; j <= rows; j++){
|
6
|
-
// this is c code
|
7
|
+
// this is c code for multiple array
|
8
|
+
scanf(%s, &array[i][j]);
|
7
9
|
}
|
8
10
|
}
|
9
|
-
```
|
11
|
+
```
|
12
|
+
data store easily in 2d array
|