Jump to content

Loops/Downward for: Difference between revisions

add brainf****
(add fermat)
(add brainf****)
Line 638:
<lang bracmat> 10:?i
& 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}}==
781

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.