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语言代码)浏览:734 |
C语言程序设计教程(第三版)课后习题8.6 (C语言代码)浏览:530 |
字符串对比 (C语言代码)浏览:1398 |
求圆的面积 (C语言代码)浏览:1667 |
1025题解浏览:732 |
分糖果 (C语言代码)浏览:912 |
C语言程序设计教程(第三版)课后习题6.10 (C语言代码)浏览:505 |
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)浏览:740 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:539 |
A+B for Input-Output Practice (IV) (C语言代码)浏览:466 |