Im new to arduino .. pls help ..

I tried this code as you mentioned .. and it works ..

void setup()
{
pinMode(12,OUTPUT);
}
void loop()
{
digitalWrite(12,HIGH);
delay(1000);
digitalWrite(12,LOW);
delay(1000);
}