import java.util.Scanner;
public class Main {
public static void rank(int[][] array){
int[][] arr = new int[3][3];
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
arr[i][j]=array[j][i];
}
}
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
array[i][j] = arr[i][j];
System.out.print(array[i][j]+" ");
}
System.out.println();
}
}
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int[][] array = new int[3][3];
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
array[i][j] = sc.nextInt();
}
}
rank(array);
}
}
0.0分
0 人评分
C二级辅导-阶乘数列 (C语言代码)浏览:867 |
简单的a+b (C语言代码)浏览:1120 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:588 |
C语言程序设计教程(第三版)课后习题10.2 (C语言代码)浏览:1121 |
ASCII帮了大忙浏览:775 |
校门外的树 (C语言代码)浏览:973 |
简单的a+b (C语言代码)浏览:657 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:501 |
C语言程序设计教程(第三版)课后习题6.8 (C语言代码)浏览:537 |
求圆的面积 (C语言代码)浏览:1736 |