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++代码)(时间超限,希望会的帮我改正一下)浏览:741 |
C语言程序设计教程(第三版)课后习题10.5 (C语言代码)浏览:538 |
简单的a+b (C语言代码)浏览:827 |
众数问题 (C语言代码)浏览:673 |
简单的a+b (C语言代码)浏览:504 |
C语言程序设计教程(第三版)课后习题8.7 (C语言代码)浏览:798 |
1415题求解浏览:606 |
Manchester-台球碰撞-(附带图解)浏览:3713 |
【亲和数】 (C++代码)浏览:533 |
A+B for Input-Output Practice (VII) (C++代码)浏览:1078 |