Sum of the digits of n is substring of n: Difference between revisions

m
(Added Arturo implementation)
Line 387:
<lang rebol>print select 1..999 'num ->
contains? to :string num
to :string sum digits num</lang>
</lang>
 
{{out}}
1,532

edits