Advertisement
Guest User

c++

a guest
Oct 30th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3.  
  4. int main()
  5. {
  6. using namespace ::std;
  7. int tab[10][10];
  8.  
  9. // zerowanie
  10. for (int i = 0; i < 10; ++i)
  11. for (int j = 0; j < 10; ++j)
  12. tab[i][j] = i+1;
  13.  
  14.  
  15. // wyswietlenie
  16. for (int i = 0; i < 10; ++i)
  17. {
  18. for (int j = 0; j < 10; ++j)
  19. cout << tab[i][j] << " ";
  20. cout <<endl;
  21. }
  22.  
  23. system("pause");
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement