Facebook
From Ivory Pheasant, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 223
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int w,k;
  8.     cin >> w >> k;
  9.     int tab[w][k];
  10.     for (int i=0;i<w;i++)
  11.     {
  12.         for (int j=0;j<k;j++)
  13.         {
  14.             cin >> tab[i][j];
  15.         }
  16.     }
  17.  
  18. for (int j=k-1;j>=0;j--)
  19. {
  20.     for( int i=w-1; i>=0; i-- )
  21.          cout << tab[i][k-j-1] << " ";
  22.  
  23.     cout << endl;
  24. }
  25.  
  26. }
  27.