Harshad or Niven series: Difference between revisions
Content added Content deleted
Line 2,984: | Line 2,984: | ||
digitSum = digitSum + val(mid$(y$,i,1)) |
digitSum = digitSum + val(mid$(y$,i,1)) |
||
next i |
next i |
||
end function</syntaxhighlight |
end function</syntaxhighlight> |
||
> |
|||
{{out}} |
{{out}} |
||
<pre>First 20 Harshad numbers: |
<pre>First 20 Harshad numbers: |