void setup()
{
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(9, INPUT);
}
void loop()
{
if(digitalRead(3)==HIGH)
{
digitalWrite(3, HIGH);
}
else
{
}
if(digitalRead(4)==HIGH)
{
digitalWrite(4, HIGH);
}
else
{
digitalWrite(9, HIGH);
}
}