Taxicab numbers: Difference between revisions
Content added Content deleted
Kinitawowi (talk | contribs) |
Kinitawowi (talk | contribs) |
||
Line 3,171: | Line 3,171: | ||
260 LET t=INT (x/100000): REM ...it will resort to scientific notation trying to display any more than eight digits |
260 LET t=INT (x/100000): REM ...it will resort to scientific notation trying to display any more than eight digits |
||
270 LET b=x-t*100000 |
270 LET b=x-t*100000 |
||
280 IF t=0 THEN GO TO |
280 IF t=0 THEN GO TO 300: REM omit leading zero |
||
290 LET t$=STR$ t |
290 LET t$=STR$ t |
||
300 LET t$=t$+STR$ b |
300 LET t$=t$+STR$ b |