(int s)
| 32 | } |
| 33 | } |
| 34 | void convert(int s) |
| 35 | { |
| 36 | int x=0; |
| 37 | for(int i=0;i<m;i++) |
| 38 | { |
| 39 | for(int j=0;j<m;j++) |
| 40 | { |
| 41 | if(i != 0 && j != 0 && i != m-1 && j != m-1) |
| 42 | { |
| 43 | if(s==1) |
| 44 | B[x] = A[i][j]; |
| 45 | else |
| 46 | A[i][j] = B[x]; |
| 47 | x++; |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | void sortArray() |
| 53 | { |
| 54 | int c = 0; |