Numbers in base-16 representation that cannot be written with decimal digits: Difference between revisions
Numbers in base-16 representation that cannot be written with decimal digits (view source)
Revision as of 18:45, 16 May 2024
, 17 days agoAdded Easylang
m (→{{header|Wren}}: Minor tidy) |
(Added Easylang) |
||
Line 728:
</pre>
=={{header|EasyLang}}==
<syntaxhighlight>
func decdig n .
while n > 0
if n mod 16 < 10
cnt += 1
.
n = n div 16
.
return cnt
.
for i to 499
if decdig i = 0
write i & " "
.
.
</syntaxhighlight>
{{out}}
<pre>
10 11 12 13 14 15 170 171 172 173 174 175 186 187 188 189 190 191 202 203 204 205 206 207 218 219 220 221 222 223 234 235 236 237 238 239 250 251 252 253 254 255
</pre>
=={{header|F_Sharp|F#}}==
|