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语言训练-计算t=1+1/2+1/3+...+1/n (C语言代码)浏览:904 |
矩阵乘方 (C语言代码)浏览:1022 |
数组与指针的问题浏览:716 |
局部变量作函数返回值的问题浏览:963 |
C二级辅导-进制转换 (C语言代码)浏览:660 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:579 |
1005答案错误为什么浏览:1975 |
整数分类问题 为什么输出总是数字8啊浏览:442 |
ACM俱乐部密码浏览:935 |
C语言程序设计教程(第三版)课后习题6.9 (C语言代码)简单版浏览:789 |