One-dimensional cellular automata: Difference between revisions
Content added Content deleted
m (→{{header|PureBasic}}: beautify code and Output) |
m (→{{header|PureBasic}}: The output is now as in the other languages) |
||
Line 1,160:
Print("Generation "+Str(Gen)+": ")
For n=1 To 20
Print(Chr(95-cG(n)*
Next
Gen +1
Line 1,175:
PrintN("Press any key to exit"): Repeat: Until Inkey() <> ""</lang>Output:
<pre>Generation 0:
Generation 1:
Generation 2:
Generation 3:
Generation 4:
Generation 5:
Generation 6:
Generation 7:
Generation 8:
Generation 9:
=={{header|Python}}==
|