September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
1
Task/Loops-While/DUP/loops-while-1.dup
Normal file
1
Task/Loops-While/DUP/loops-while-1.dup
Normal file
|
|
@ -0,0 +1 @@
|
|||
1024[$][$.10,2/\%]# {Short form}
|
||||
6
Task/Loops-While/DUP/loops-while-2.dup
Normal file
6
Task/Loops-While/DUP/loops-while-2.dup
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
1024 {push 1024 on stack}
|
||||
[ ][ ]# {while[condition>0][do]}
|
||||
$ {DUP}
|
||||
$. {DUP, print top of stack to STDOUT}
|
||||
10, {print newline}
|
||||
2/\% {2 DIV/MOD SWAP POP}
|
||||
1
Task/Loops-While/DUP/loops-while-3.dup
Normal file
1
Task/Loops-While/DUP/loops-while-3.dup
Normal file
|
|
@ -0,0 +1 @@
|
|||
1024[$][$.10,1»]#
|
||||
11
Task/Loops-While/DUP/loops-while-4.dup
Normal file
11
Task/Loops-While/DUP/loops-while-4.dup
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
1024
|
||||
512
|
||||
256
|
||||
128
|
||||
64
|
||||
32
|
||||
16
|
||||
8
|
||||
4
|
||||
2
|
||||
1
|
||||
Loading…
Add table
Add a link
Reference in a new issue