- 二维数组的输入输出
111
- @ 2026-10-31 16:46:05
#include<bits/stdc++.h>
using namespace std;
int main(){
int a[5][5];
for(int i=0;i<5;i++){
for(int j=0;j<5;j++){
cin>>a[i][j];
}
}
for(int i=0;i<5;i++){
for(int j=0;j<5;j++){
cout<<a[i][j]<<" ";
}
cout<<endl;
}
return 0;
}
0 条评论
目前还没有评论...
信息
- ID
- 1305
- 时间
- ms
- 内存
- MiB
- 难度
- 2
- 标签
- 递交数
- 949
- 已通过
- 348
- 上传者