Jump to content

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

Add BQN
(Add BQN)
Line 424:
912 913 914 915 916 917 918 919</pre>
 
=={{header|BQN}}==
<lang bqn>DigitSum ← +´•Fmt-'0'˙
Contains ← (∨´⍷˜ )○•Fmt
∘‿6⥊ (⊢ Contains DigitSum)¨⊸/↕1000</lang>
{{out}}
<pre>┌─
╵ 0 1 2 3 4 5
6 7 8 9 10 20
30 40 50 60 70 80
90 100 109 119 129 139
149 159 169 179 189 199
200 300 400 500 600 700
800 900 910 911 912 913
914 915 916 917 918 919
┘</pre>
=={{header|C}}==
<lang c>#include <stdio.h>
2,114

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.