// B00111111 or 63 =>0 ,B00000110 or 6 =1 ,B01011011 or 91 =2 ,
//B01001111 or 79 =3,B01100110  or 102 =4
 // B01101101 or 109 =5 ,B01111101 or 125 = 6 
 //,B00000111 or 7 =7 
 //,B01111111 or 127 =8 ,B01101111 or 111 =9
 int i=0;
 int b=9;
int binary_number_desplay[] = {
    63, 6, 91,
    79, 102, 109,
    125, 7, 127, 111};

void setup()
{
    DDRD |= 0b11111111;
}
void loop()
{
   while(i<=9){
    PORTD =~binary_number_desplay[i];
    delay(400);
    i++;
   }
    while(b >=0){
    PORTD =~binary_number_desplay[b];
    delay(400);
    b--;
   }
     
     
    
    }