Advertisement
Guest User

asd

a guest
Apr 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1.     int tab [5][5];
  2.     for (int i=0;i<5;i++)
  3.     {
  4.         for (int j=0;j<5;j++)
  5.             {
  6.                 tab[i][j] = i;
  7.                
  8.                 if (i==j)
  9.                 cout << tab[i][j] << " ";
  10.                
  11.             }
  12.             cout << endl;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement