// globle variable declaration without assigne a value
int ledPinGeen;
// globle variable declation with assign a value
int ledPinRed=8;
void setup() {
// put your setup code here, to run once:
// assingment of value to ledPinGeen
ledPinGeen=5;
// intialization of pins
pinMode(ledPinGeen,OUTPUT);
pinMode(ledPinRed, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
// using the variable
digitalWrite(ledPinGeen, HIGH);
delay(1500);
digitalWrite(ledPinGeen, LOW);
digitalWrite(ledPinRed, HIGH);
delay(1500);
digitalWrite(ledPinRed, LOW);
}