void setup() {
  // put your setup code here, to run once:
pinMode(1, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
}

void one(){
digitalWrite(1, HIGH);
digitalWrite(2,LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(6, HIGH);
digitalWrite(7, LOW);
digitalWrite(8, LOW);


}

void two(){
digitalWrite(1, HIGH) ;
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, HIGH);
digitalWrite(6, LOW);
digitalWrite(7, HIGH);
digitalWrite(8, HIGH);




}
 void three(){

  digitalWrite(1,HIGH) ;
  digitalWrite(2, HIGH);
  digitalWrite(3,LOW);
  digitalWrite(4, HIGH);
  digitalWrite(6, HIGH);
  digitalWrite(7, HIGH);
  digitalWrite(8, LOW);



  
 }


 void four(){

  digitalWrite(1,HIGH) ;
  digitalWrite(2, LOW);
  digitalWrite(3,HIGH);
  digitalWrite(4, HIGH);
  digitalWrite(6, HIGH);
  digitalWrite(7, LOW);
  digitalWrite(8, LOW);



  
 }


  void five(){

  digitalWrite(1,LOW) ;
  digitalWrite(2, HIGH);
  digitalWrite(3,HIGH);
  digitalWrite(4, HIGH);
  digitalWrite(6, HIGH);
  digitalWrite(7, HIGH);
  digitalWrite(8, LOW);



  
 }

 void six(){

  digitalWrite(1,LOW) ;
  digitalWrite(2, HIGH);
  digitalWrite(3,HIGH);
  digitalWrite(4, HIGH);
  digitalWrite(6, HIGH);
  digitalWrite(7, HIGH);
  digitalWrite(8, HIGH);



  
 }

 void seven(){

  digitalWrite(1,HIGH) ;
  digitalWrite(2, HIGH);
  digitalWrite(3,LOW);
  digitalWrite(4, LOW);
  digitalWrite(6, HIGH);
  digitalWrite(7, LOW);
  digitalWrite(8, LOW);



  
 }


  void eight(){

  digitalWrite(1,HIGH) ;
  digitalWrite(2, HIGH);
  digitalWrite(3,HIGH);
  digitalWrite(4, HIGH);
  digitalWrite(6, HIGH);
  digitalWrite(7, HIGH);
  digitalWrite(8, HIGH);



  
 }


  void nine(){

  digitalWrite(1,HIGH) ;
  digitalWrite(2, HIGH);
  digitalWrite(3,HIGH);
  digitalWrite(4, HIGH);
  digitalWrite(6, HIGH);
  digitalWrite(7, HIGH);
  digitalWrite(8, LOW);



  
 }


  void zero(){

  digitalWrite(1,HIGH) ;
  digitalWrite(2, HIGH);
  digitalWrite(3,HIGH);
  digitalWrite(4, LOW);
  digitalWrite(6, HIGH);
  digitalWrite(7, HIGH);
  digitalWrite(8, HIGH);



  
 }

void loop() {
  // put your main code here, to run repeatedly:
zero();
delay(1000);
one();
delay(1000);
two();

delay (1000);

three();

delay(1000);

four();
delay(1000);

five();
delay(1000);
six();
delay(1000);
seven();
delay(1000);
eight();
delay(1000);
nine();
delay(1000);

}