Loops/Downward for: Difference between revisions
Content added Content deleted
(add fermat) |
(add brainf****) |
||
Line 638: | Line 638: | ||
<lang bracmat> 10:?i |
<lang bracmat> 10:?i |
||
& whl'(out$!i&!i+-1:~<0:?i)</lang> |
& whl'(out$!i&!i+-1:~<0:?i)</lang> |
||
=={{header|Brainf***}}== |
|||
<lang brainf***>>++++++++[-<++++++>] //cell 0 now contains 48 the ASCII code for "0" |
|||
<+.-. //print the digits 1 and 0 |
|||
>++++++++++. //cell 1 now contains the carriage return; print it! |
|||
>+++++++++ //cell 2 now contains the number 9; this is our counter |
|||
<<+++++++++>> //cell 0 now contains 57 the ASCII code for "9" |
|||
[<<.->.>-] //print and decrement the display digit; print a newline; decrement the loop variable |
|||
<<.>. //print the final 0 and a final newline</lang> |
|||
=={{header|Brat}}== |
=={{header|Brat}}== |