Jump to content

Numbers divisible by their individual digits, but not by the product of their digits.: Difference between revisions

Added Easylang
m (→‎{{header|Wren}}: Minor tidy)
(Added Easylang)
 
Line 804:
</pre>
 
 
=={{header|EasyLang}}==
{{trans|C}}
<syntaxhighlight>
func divisible n .
p = 1
c = n
while c > 0
d = c mod 10
if d = 0 or n mod d <> 0
return 0
.
p *= d
c = c div 10
.
return if n mod p > 0
.
for n = 1 to 999
if divisible n = 1
write n & " "
.
.
</syntaxhighlight>
{{out}}
<pre>
22 33 44 48 55 66 77 88 99 122 124 126 155 162 168 184 222 244 248 264 288 324 333 336 366 396 412 424 444 448 488 515 555 636 648 666 728 777 784 824 848 864 888 936 999
</pre>
 
=={{header|F_Sharp|F#}}==
2,060

edits

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