Jump to content

Galton box animation: Difference between revisions

(→‎{{header|C}}: obligatory screenshot)
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:
}</lang>
<pre>
*
* *O
* * *
* * * *
* * * * *
* * * * * *
O
O O
O O O O
O O O O O
=============</pre>
 
=={{header|C}}==
<lang c>#include <stdio.h>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.