Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int x = 0;
- int y = 0;
- int col = 0;
- int step = 0;
- int tab[200][200];
- int main()
- {
- while (true) {
- x = 0;
- y = 0;
- while (tab[x][y] > 10) {
- if (y <= 199) {
- tab[x][y] = 0;
- y = 0;
- x++;
- }
- else {
- tab[x][y] = 0;
- y++;
- }
- }
- tab[x][y]++;
- /*if (step == 100000) {
- cout << x << " " << y << " " << tab[x][y] << endl;;
- step = 0;
- }
- step++;*/
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement