Minimum multiple of m where digital sum equals m: Difference between revisions
Minimum multiple of m where digital sum equals m (view source)
Revision as of 23:37, 2 July 2024
, 14 days ago→{{header|Quackery}}: fixed typo
(Added Quackery.) |
m (→{{header|Quackery}}: fixed typo) |
||
(One intermediate revision by the same user not shown) | |||
Line 2,326:
=={{header|Quackery}}==
<code>from</code>, <code>index</code> and <code>
<syntaxhighlight lang="Quackery"> [ 0 swap
Line 2,334:
drop ] is digitsum ( n --> n )
[]
40 times
[
[ dup dup index * ▼
[ dup dup
digitsum =
1+
drop echo</syntaxhighlight>
{{out}}
|