Cantor set: Difference between revisions
Content deleted Content added
→{{header|XPL0}}: cleaner version |
|||
Line 3,841:
=={{header|XPL0}}==
<lang XPL0>
▲int N, Base, Len, Third, I;
[if N>0 and Len>1 then
[Third:= Len/3;
for I:=
Cantor(N-1,
▲ Cantor(N-1, Base+2*Third, Third);
];
];
char LineSeg, N;
[LineSeg:=
"#################################################################################
";
for N:= 0 to 4 do
[Cantor(N,
Text(0, LineSeg);
];
|