Sum of the digits of n is substring of n: Difference between revisions
Content added Content deleted
Not a robot (talk | contribs) (Add Snobol) |
(→{{header|BASIC}}: marked incorrect) |
||
Line 43: | Line 43: | ||
=={{header|BASIC}}== |
=={{header|BASIC}}== |
||
{{incorrect|BASIC|wrong output, last should be 919<br><br>suspect I mod 10 shd be K mod 10}} |
|||
<lang basic>10 DEFINT I,J,K |
<lang basic>10 DEFINT I,J,K |
||
20 FOR I=0 TO 999 |
20 FOR I=0 TO 999 |