8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f1b97d commit 09f66adCopy full SHA for 09f66ad
CodeUp C언어 기초 100제/1099.c
@@ -0,0 +1,28 @@
1
+#include <stdio.h>
2
+
3
+int main() {
4
+ int arr[11][11] = {0};
5
+ int i, j;
6
+ int x=2, y=2;
7
8
+ for (i=1; i<=10; i++) {
9
+ for (j=1; j<=10; j++) {
10
+ scanf("%d", &arr[i][j]);
11
+ }
12
13
14
+ while (arr[x][y] != 2) {
15
+ arr[x][y] = 9;
16
+ if (arr[x][y+1] != 1) y++;
17
+ else if(arr[x+1][y] != 1) x++;
18
+ else break;
19
20
21
22
23
24
+ printf("%d ", arr[i][j]);
25
26
+ printf("\n");
27
28
+}
0 commit comments