Advertisement
Guest User

Untitled

a guest
Nov 14th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.40 KB | None | 0 0
  1. int chiffre = 1;
  2. bool soustr;
  3. string array[] = ["A", "B", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P"];
  4.  
  5. for(int compt; compt == array.length; ++compt)
  6. {
  7.     array[compt] = chiffre.to!string ~ array[compt];
  8.    
  9.     if (chiffre = 4)
  10.     {
  11.         soustr = true;
  12.     }
  13.     else
  14.     {
  15.         if (chiffre = 1)
  16.         {
  17.             soustr = false;
  18.         }
  19.     }
  20.  
  21.     if (soustr)
  22.     {
  23.         --chiffre;
  24.     }
  25.     else
  26.     {
  27.         ++chiffre;
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement