Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Binary-digits/IS-BASIC/binary-digits.basic
Normal file
8
Task/Binary-digits/IS-BASIC/binary-digits.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