Spinning rod animation/Text: Difference between revisions

Content added Content deleted
(Scala contribution added.)
(Scala contribution added.)
Line 238: Line 238:
end /*j*/
end /*j*/
halt: say bs ' ' /*stick a fork in it, we're all done. */</lang>
halt: say bs ' ' /*stick a fork in it, we're all done. */</lang>
=={{header|Ring}}==
<br><br>
<lang ring>load "stdlib.ring"

rod = ["|", "/", "-", "\"]
for n = 1 to len(rod)
see rod[n] + nl
sleep(0.25)
system("cls")
next</lang>
Output:
|
/
-
\
=={{header|Scala}}==
=={{header|Scala}}==
<lang Scala>object SpinningRod extends App {
<lang Scala>object SpinningRod extends App {
Line 258: Line 269:


}</lang>
}</lang>
=={{header|Ring}}==
<lang ring>load "stdlib.ring"
rod = ["|", "/", "-", "\"]
for n = 1 to len(rod)
see rod[n] + nl
sleep(0.25)
system("cls")
next</lang>
Output:
|
/
-
\

=={{header|zkl}}==
=={{header|zkl}}==
{{trans|C Shell}}
{{trans|C Shell}}