September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
8
Task/Binary-digits/BASIC/binary-digits-6.basic
Normal file
8
Task/Binary-digits/BASIC/binary-digits-6.basic
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
10 PRINT BIN$(50)
|
||||
100 DEF BIN$(N)
|
||||
110 LET N=ABS(INT(N)):LET B$=""
|
||||
120 DO
|
||||
140 LET B$=STR$(MOD(N,2))&B$:LET N=INT(N/2)
|
||||
150 LOOP WHILE N>0
|
||||
160 LET BIN$=B$
|
||||
170 END DEF
|
||||
Loading…
Add table
Add a link
Reference in a new issue