int ledPin = 11;
int btnPin = 9;
void setup() {
  // put your setup code here, to run once:
  pinMode(11, OUTPUT);
  pinMode(9, INPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  if(digitalRead(ledPin) == 1){
    digitalWrite(ledPin, HIGH);
    delay(1000);
  }else{
    digitalWrite(ledPin,LOW);
    delay(1000);
  }
}