Website and domain for sale: mail@discussmain.com

Find all natural numbers which are not exceeding the set number N, kotoryedelitsya without the rest on each of the figures. Specify result for N=2017 in the answer.

336
Var N, C, k, d: integer; Begin Write (N =); ReadLn(N); For N: = 1 to N do Begin C: = N; k: = 0; d: = 0; While C< & gt; 0 do Begin k: = k+1; if C mod 10 & lt; & gt; 0 then if N mod (C mod 10) = 0 then d: = d+1; C: = With div 10 End; if d = k then Write (N) End; End. Example: N = 2017 1 2 3 4 5 6 7 8 9 11 12 15 22 24 33 36 44 48 55 66 77 88 99 111 112 115 122 124 126 128 132 135 144 155 162 168 175 184 212 216 222 224 244 248 264 288 312 315 324 333 336 366 384 396 412 424 432 444 448 488 515 555 612 624 636 648 666 672 728 735 777 784 816 824 848 864 888 936 999 1111 1112 1113 1115 1116 1122 1124 1128 1131 1144 1155 1164 1176 1184 1197 1212 1222 1224 1236 1244 1248 1266 1288 1296 1311 1326 1332 1335 1344 1362 1368 1395 1412 1416 1424 1444 1448 1464 1488 1515 1555 1575 1626 1632 1644 1662 1692 1715 1722 1764 1771 1824 1848 1888 1926 1935 1944 1962
200
Answer add