Commit ec392fd0 authored by M33's avatar M33 💬

Add new file

parent 44c10ef9
import strutils
for n in 1..100:
var
i=0
t=0
s=intToStr(n)
while i<s.len:
t+=s[i].int-48
i+=1
if n%%t==0:
echo n
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment