void setup() {
 for(int ledPin=2;ledPin>=8;ledPin++)
 {
  pinMode(ledPin, OUTPUT);
 }

}

void loop() {
  //លេខ​ 0
  digitalWrite(2,1);//a
  digitalWrite(3,1);//b
  digitalWrite(4,1);//c
  digitalWrite(5,1);//d
  digitalWrite(6,1);//e
  digitalWrite(7,1);//f
  digitalWrite(8,0);//g
delay(1000);
  //លេខ​ 1
  digitalWrite(2,0);//a
  digitalWrite(3,1);//b
  digitalWrite(4,1);//c
  digitalWrite(5,0);//d
  digitalWrite(6,0);//e
  digitalWrite(7,0);//f
  digitalWrite(8,0);//g
delay(1000);
  //លេខ​ 2
  digitalWrite(2,1);//a
  digitalWrite(3,1);//b
  digitalWrite(4,0);//c
  digitalWrite(5,1);//d
  digitalWrite(6,1);//e
  digitalWrite(7,0);//f
  digitalWrite(8,1);//g
delay(1000);
  //លេខ​ 3
  digitalWrite(2,1);//a
  digitalWrite(3,1);//b
  digitalWrite(4,1);//c
  digitalWrite(5,1);//d
  digitalWrite(6,0);//e
  digitalWrite(7,0);//f
  digitalWrite(8,1);//g
  delay(1000);
  //4
  digitalWrite(2,0);//a
  digitalWrite(3,1);//b
  digitalWrite(4,1);//c
  digitalWrite(5,0);//d
  digitalWrite(6,0);//e
  digitalWrite(7,1);//f
  digitalWrite(8,1);//g
  delay(1000);
  //5
  digitalWrite(2,1);//a
  digitalWrite(3,0);//b
  digitalWrite(4,1);//c
  digitalWrite(5,1);//d
  digitalWrite(6,0);//e
  digitalWrite(7,1);//f
  digitalWrite(8,1);//g
  delay(1000);
  //6
  digitalWrite(2,1);//a
  digitalWrite(3,0);//b
  digitalWrite(4,1);//c
  digitalWrite(5,1);//d
  digitalWrite(6,1);//e
  digitalWrite(7,1);//f
  digitalWrite(8,1);//g
  delay(1000);
  //7
  digitalWrite(2,1);//a
  digitalWrite(3,1);//b
  digitalWrite(4,1);//c
  digitalWrite(5,0);//d
  digitalWrite(6,0);//e
  digitalWrite(7,0);//f
  digitalWrite(8,0);//g
  delay(1000);
  //8
  digitalWrite(2,1);//a
  digitalWrite(3,1);//b
  digitalWrite(4,1);//c
  digitalWrite(5,1);//d
  digitalWrite(6,1);//e
  digitalWrite(7,1);//f
  digitalWrite(8,1);//g
  delay(1000);
  //9
  digitalWrite(2,1);//a
  digitalWrite(3,1);//b
  digitalWrite(4,1);//c
  digitalWrite(5,1);//d
  digitalWrite(6,0);//e
  digitalWrite(7,1);//f
  digitalWrite(8,1);//g
  delay(1000);
}