Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<conio.h>
- using namespace std;
- int main(){
- int numeros[4][4];
- for(int i=0;i<4;i++){
- for(int j=0;j<4;j++){
- cout<<"Digite un numero ["<<i<<"]["<<j<<"]: ";
- cin>>numeros[i][j];
- }
- }
- cout<<"\nMatriz Original\n";
- for(int i=0;i<4;i++){
- for(int j=0;j<4;j++){
- cout<<numeros[i][j]<<" ";
- }
- cout<<"\n";
- }
- cout<<"\nMatriz Transpuesta\n";
- for(int i=0;i<4;i++){
- for(int j=0;j<4;j++){
- cout<<numeros[j][i]<<" ";
- }
- cout<<"\n";
- }
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement