Abaduaber

MarMar_2

Dec 14th, 2013
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 0.43 KB | None | 0 0
  1. DIM M(1 TO 11, 1 TO 7), I AS INTEGER, J AS INTEGER
  2. CLS
  3. FOR J = 1 TO 7
  4.     FOR I = 1 TO 11
  5.         IF I = 1 OR I = 11 THEN M(I, J) = 1
  6.         IF ((I = 3) OR (I = 9)) AND (J = 2) THEN M(I, J) = 1
  7.         IF ((I = 4) OR (I = 8)) AND (J = 3) THEN M(I, J) = 1
  8.         IF I = 6 AND J = 4 THEN M(I, J) = 1
  9.         IF M(I, J) = 1 THEN
  10.           PRINT "0";
  11.         ELSE
  12.           PRINT " ";
  13.         END IF
  14.     NEXT I
  15.     PRINT
  16. NEXT J
Advertisement
Add Comment
Please, Sign In to add comment