Numbers in base-16 representation that cannot be written with decimal digits: Difference between revisions

m
→‎{{header|ALGOL 68}}: Remove unused declaration
m (Corrected a type in output.)
m (→‎{{header|ALGOL 68}}: Remove unused declaration)
Line 8:
Generates the numbers.
<lang algol68>BEGIN # find numbers whose hex representation does not contain the digits 0-9 #
INT# maxgenerate numberand =print the numbers up to 499; #
# generate499 andis print1F3 thein hex, so we need to find numbers up to FF #
# the maximum number to consider is 1F3 in hex, so we need to find numbers up to FF #
INT h count := 0;
# 1 hex digit numbers #
3,038

edits