Advertisement
ozanselte

Koşul Yazdırma

Feb 15th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.73 KB | None | 0 0
  1. import std.stdio;
  2.  
  3. void main(){
  4.     for(int q = 0; q < 2; q++){
  5.         for(int w = 0; w < 2; w++){
  6.             for(int e = 0; e < 2; e++){
  7.                 for(int r = 0; r < 2; r++){
  8.                     for(int t = 0; t < 2; t++){
  9.                         for(int y = 0; y < 2; y++){
  10.                             char[6] ü;
  11.                             if(q) ü[0] = '!';
  12.                             if(w) ü[1] = '!';
  13.                             if(e) ü[2] = '!';
  14.                             if(r) ü[3] = '!';
  15.                             if(t) ü[4] = '!';
  16.                             if(y) ü[5] = '!';
  17.  
  18.                             writef("else if(%cRobot.line[0] && %cRobot.line[1] && %cRobot.line[2] && %cRobot.line[3] && %cRobot.line[4] && &cRobot.line[5]){", ü[0], ü[1], ü[2], ü[3], ü[4], ü[5]);
  19.                             writef(" // %d %d %d%d %d %d\n", q, w, e, r, t, y);
  20.                             writef("\t\t\n");
  21.                             writef("\t}\n\t");
  22.                         }
  23.                     }
  24.                 }
  25.             }
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement