Advertisement
Guest User

Untitled

a guest
May 16th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
DOT 0.62 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int
  6. main
  7. (){int x;int y
  8. ;cout
  9. << "Podaja szerokosc macierz" <<
  10.  endl;cin >>
  11.  x
  12.  ;cout << "Podaja wysokosc macierz"
  13.  << endl;cin >> y;int Tab[x][y];for
  14.   (int i=0;i<y;i++)
  15.   {for
  16.   (int j=0
  17.    ;j<x;j++){cout<<"Wprowadz element ("<<i<<","<<j<<") macierzy"
  18.   <<endl;cin>>Tab[i][j];}}cout<<endl<<"Wprowadzona macierz: "<<endl;for (int i=0;i<y;i++){cout<<
  19.   endl;for(int j=0;j<x;j++)
  20.   {cout<<
  21.   Tab[i][j]<<
  22.   " ";}}
  23.   }
  24. /*  Ułożyłem wsztstko tak bo jest czytelniej
  25.     cin to scanf
  26.     cout to printf
  27.     endl to znak nowej linii
  28.     Resztę chyba ogarniasz
  29. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement