define variables using for loop

Hi...

I want to define more than one variable using a loop

for example:

for (i=0;i=3;i++) { int variable(i); }

so I would have variable0, variable1, variable2.

Is it possible?

No. Use an array

Red_Cannon: so I would have variable0, variable1, variable2.

This code defines an array variable named foo with three elements foo[0], foo[1], foo[2]:

int foo[3];

what is allowed in C is multiple counters in the loop

for (int i=0, j=100, k=0;  i<100; i++, j--, k = random(i*j))
{
  Serial.print(i);
  Serial.print('\t');
  Serial.print(j);
  Serial.print('\t');
  Serial.println(k);
}

but it is not often used.