mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
Update: Rename folder name to XSMOJ
This commit is contained in:
21
XSMOJ/输入输出二维数组.cpp
Normal file
21
XSMOJ/输入输出二维数组.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
using namespace std;
|
||||
int main(){
|
||||
int a[100][100],b,c;
|
||||
cin >>b>>c;
|
||||
for(int i=0;i<b;i++){
|
||||
for(int j=0;j<c;j++){
|
||||
cin >>a[i][j];
|
||||
}
|
||||
}
|
||||
for(int i=0;i<b;i++){
|
||||
for(int j=0;j<c;j++){
|
||||
cout <<a[i][j]<<" ";
|
||||
}
|
||||
cout <<endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user