#define led1 5
#define led2 18
#define led3 19
#define tombol 15

int status = 0;

void setup() {
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
  pinMode(led3, OUTPUT);
  pinMode(tombol, INPUT);
  digitalWrite(led1, LOW);
  digitalWrite(led2, LOW);
  digitalWrite(led3, LOW);
}

void loop() {
  if(digitalRead(tombol) == HIGH){
    status ++ ;
    delay(150);
    }
    if (status == 1){
      digitalWrite(led3, HIGH);
    }
    else if (status == 2){
      digitalWrite(led2, HIGH);
    }
    else if (status == 3){
      digitalWrite(led1, HIGH);
  } else {
      digitalWrite(led1, LOW);
      digitalWrite(led2, LOW);
      digitalWrite(led3, LOW);
  }
}