Anonymous user
Galton box animation: Difference between revisions
→{{header|AutoHotkey}}: output
(→{{header|C}}: obligatory screenshot) |
(→{{header|AutoHotkey}}: output) |
||
Line 101:
StringTrimRight, out, out, 1 ; removes the last newline
return out
}</lang>While the number of pegs, and falling space are configurable, here's output shortly after starting one configuration:
<pre>
*
* *O
* * *
* * * *
* * * * *
* * * * * *
O
O O
O O O O
O O O O O
=============</pre>
=={{header|C}}==
<lang c>#include <stdio.h>
|