Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Binary-digits/BCPL/binary-digits.bcpl
Normal file
16
Task/Binary-digits/BCPL/binary-digits.bcpl
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
get "libhdr"
|
||||
|
||||
let writebin(x) be
|
||||
$( let f(x) be
|
||||
$( if x>1 then f(x>>1)
|
||||
wrch((x & 1) + '0')
|
||||
$)
|
||||
f(x)
|
||||
wrch('*N')
|
||||
$)
|
||||
|
||||
let start() be
|
||||
$( writebin(5)
|
||||
writebin(50)
|
||||
writebin(9000)
|
||||
$)
|
||||
Loading…
Add table
Add a link
Reference in a new issue