java实现矩阵相乘
import java.util.Scanner;
public class three {
public static void main(String[] args) {
int a[][];int n;int b[][];
int i,j,sum;
Scanner in=new Scanner(System.in);
n=in.nextInt();
a=new int[n][n];
for(i=0;i<n;i++)
for(j=0;j<n;j++)
a[i][j]=in.nextInt()
原创
2020-10-11 14:48:38 ·
277 阅读 ·
0 评论