Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main (){
- int matriz[100][100];
- int filas,columnas;
- cin>>filas>>columnas;
- for(int i=0;i<filas;i++){
- for(int j=0;j<columnas;j++){
- cin>>matriz[i][j];
- }
- }
- for(int i=0;i<columnas;i++){
- cout<<"\n";
- for(int j=0;j<filas;j++){
- cout<<matriz[j][i]<<" ";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement