const int seg[]={4,5,10,11,12,3,2};
const String num[]={"1111110","0110000",
                    "1101101","1111001",
                    "0110011","1011011",
                    "1011111","1110000",
                    "1111111","1111011"};
char seq[8];
int i,j;
void setup() {
 for(i=0;i<7;i++){
   pinMode(seg[i], OUTPUT);
 } 
}

void loop() {
  for(j=0;j<10;j++){
    num[j].toCharArray(seq,8);
    for(i=0;i<7;i++){
      digitalWrite(seg[i],seq[i]-'0');
    }
    delay(1000);
  }
}
$abcdeabcde151015202530fghijfghij