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,0,1,1,2,0, 0,1,1,2,0,1,1,2,0, 0,0,1,1,1,1,1,2,0, 0,0,0,0,0,1,1,2,0, 0,0,0,0,0,1,1,2,0, 0,1,2,0,0,1,1,2,0, 0,0,1,1,1,1,2,0,0, 0,0,0,0,0,0,0,0,0},//9 {0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0}};//CLR clrscr(); randomize(); // int i0 = random(10) // if (i0 <= 10) do{ //clrscr(); i0=random(10); for(int i1=0;i1<=11;i1++) { gotoxy(x,y); for(int i2=0;i2<=9;i2++) { if (rs[i0][i1][i2] == 1) { rs[i0][i1][i2] = -37; } else if (rs[i0][i1][i2] == 2) { rs[i0][i1][i2] = -79; } printf("%c",rs[i0][i1][i2]); }
y++; } delay(300); y=y-12; if(kbhit()) c=getch(); if(c==27) goto ed; }while(i0 < 11);
ed: gotoxy(28,50); printf("Press any key to exit"); getch(); }