Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Cantor-set/BASIC/cantor-set.basic
Normal file
14
Task/Cantor-set/BASIC/cantor-set.basic
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
10 DEFINT A-Z
|
||||
20 N = 4
|
||||
30 W = 3^(N-1)
|
||||
40 S = W
|
||||
50 L$ = STRING$(W, "#")
|
||||
60 PRINT L$
|
||||
70 IF S = 1 THEN END
|
||||
80 S = S\3
|
||||
90 P = 1
|
||||
100 IF P >= W-S GOTO 60
|
||||
110 P = P+S
|
||||
120 MID$(L$,P,S) = SPACE$(S)
|
||||
130 P = P+S
|
||||
140 GOTO 100
|
||||
Loading…
Add table
Add a link
Reference in a new issue