Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Count-in-octal/ZX-Spectrum-Basic/count-in-octal.basic
Normal file
10
Task/Count-in-octal/ZX-Spectrum-Basic/count-in-octal.basic
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
10 PRINT "DEC. OCT."
|
||||
20 FOR i=0 TO 20
|
||||
30 LET o$="": LET n=i
|
||||
40 LET o$=STR$ FN m(n,8)+o$
|
||||
50 LET n=INT (n/8)
|
||||
60 IF n>0 THEN GO TO 40
|
||||
70 PRINT i;TAB 3;" = ";o$
|
||||
80 NEXT i
|
||||
90 STOP
|
||||
100 DEF FN m(a,b)=a-INT (a/b)*b
|
||||
Loading…
Add table
Add a link
Reference in a new issue