#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int i = 0;
const int size = 3;
int tab[size];
while(i<size)
{
tab[i] = i;
printf("tab[%i] = %i\n", i, tab[i]);
i++;
}
cout << endl;
for(int j = 0; j < size; j++){
tab[j] = j;
printf("tab[%i] = %i\n", j, tab[j]);
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGlvPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgaSA9IDA7CgkKCWNvbnN0IGludCBzaXplID0gMzsKCWludCB0YWJbc2l6ZV07CgkKCXdoaWxlKGk8c2l6ZSkKCXsKCQl0YWJbaV0gPSBpOwoJCXByaW50ZigidGFiWyVpXSA9ICVpXG4iLCBpLCB0YWJbaV0pOwoJCWkrKzsKCX0KCWNvdXQgPDwgZW5kbDsKCglmb3IoaW50IGogPSAwOyBqIDwgc2l6ZTsgaisrKXsKCQl0YWJbal0gPSBqOwoJCXByaW50ZigidGFiWyVpXSA9ICVpXG4iLCBqLCB0YWJbal0pOwoJfQoJCQoJcmV0dXJuIDA7Cn0=