int A= 4;
int B= 2;
int C= 8;
int D= 6;
int E= 5;
int F= 3;
int G= 9;
int Dp= 7;
int D1= 13;
int D2= 12;
int D3= 11;
int D4= 10;

void setup() {
  // put your setup code here, to run once:
 pinMode(A, OUTPUT) ;
 pinMode(B, OUTPUT) ;
 pinMode(C, OUTPUT) ;
 pinMode(D,OUTPUT) ;
 pinMode(E, OUTPUT) ;
 pinMode(F, OUTPUT) ;
 pinMode(G, OUTPUT) ;
 pinMode(Dp, OUTPUT) ;
 pinMode(D1, OUTPUT) ;
 pinMode(D1, OUTPUT) ;
 pinMode(D2, OUTPUT) ;
 pinMode(D3,OUTPUT) ;
 pinMode(D4, OUTPUT) ;
}

void loop() {
  // put your main code here, to run repeatedly:
 digitalWrite(A, LOW);
 digitalWrite(B, HIGH) ;
 digitalWrite(C, HIGH);
 digitalWrite(D, LOW);
 digitalWrite(E, LOW);
 digitalWrite(F, LOW);
 digitalWrite(G, LOW);
 digitalWrite(D1, LOW);
 digitalWrite(D2, HIGH);
 digitalWrite(D3, HIGH );
 digitalWrite(D4, HIGH);


delay(500);
digitalWrite(A, HIGH);
digitalWrite(B, LOW);
digitalWrite(C, HIGH);
digitalWrite(D, HIGH) ;
digitalWrite(E, LOW);
digitalWrite(F, HIGH);
digitalWrite(G, HIGH);
digitalWrite(D1, HIGH);
digitalWrite(D2, LOW);
digitalWrite(D3, HIGH);
digitalWrite(D4, HIGH);

delay(1000);
}