Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int
- main
- (){int x;int y
- ;cout
- << "Podaja szerokosc macierz" <<
- endl;cin >>
- x
- ;cout << "Podaja wysokosc macierz"
- << endl;cin >> y;int Tab[x][y];for
- (int i=0;i<y;i++)
- {for
- (int j=0
- ;j<x;j++){cout<<"Wprowadz element ("<<i<<","<<j<<") macierzy"
- <<endl;cin>>Tab[i][j];}}cout<<endl<<"Wprowadzona macierz: "<<endl;for (int i=0;i<y;i++){cout<<
- endl;for(int j=0;j<x;j++)
- {cout<<
- Tab[i][j]<<
- " ";}}
- }
- /* Ułożyłem wsztstko tak bo jest czytelniej
- cin to scanf
- cout to printf
- endl to znak nowej linii
- Resztę chyba ogarniasz
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement