using number with word

Hello I dont know how to call this problem.
I wana use int in a int I know that sounds stupid but it would make my life easy.
To understand my problem here is the code:

int counter;
int led1;
int led2;
int led3;
void setup()
{
}

void loop(){

 for(int i=0;i<4;i++)
    { 
counter = i;
  led(here I wana put number i) = some stuff;




}

Thank you

You need to look at using arrays.

A slight problem in your example is that you go through the for loop four times, but you have only three
LEDs.

What they said ..., but here's an example of using arrays along with a few other confusing things.

#define NUM_ENTRIES(ARRAY)  (sizeof(ARRAY) / sizeof(ARRAY[0]))

const uint8_t   pinLED_1    = 13;   // CHANGE TO YOUR PIN NUMBER
const uint8_t   pinLED_2    = 13;   // CHANGE TO YOUR PIN NUMBER
const uint8_t   pinLED_3    = 13;   // CHANGE TO YOUR PIN NUMBER

const uint8_t   LED_OFF     = LOW;  // CHANGE TO YOUR 'OFF' STATE VALUE
const uint8_t   LED_ON      = HIGH; // CHANGE TO YOUR 'ON'  STATE VALUE

const unsigned long tmsONE_SECOND   = 1000UL;

// ... AN ARRAY OF I/O PINS ...
const uint8_t   pinsLEDS[]  = { pinLED_1, pinLED_2, pinLED_3 };

void loop()
{
    for ( size_t i = 0; i < NUM_ENTRIES(pinsLEDS); i++ )
    { 
        const uint8_t   state = digitalRead(pinsLEDS[i]);

        digitalWrite(pinsLEDS[i], ((LED_ON == state) ? LED_OFF : LED_ON));
    }

    delay(tmsONE_SECOND);
}

void setup()
{
    for ( size_t i = NUM_ENTRIES(pinsLEDS); i--; )
    {
        pinMode(pinsLEDS[i], OUTPUT);

        digitalWrite(pinsLEDS[i], LED_OFF);
    }
}