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

Content added Content deleted
m (Corrected a type in output.)
m (→‎{{header|ALGOL 68}}: Remove unused declaration)
Line 8: Line 8:
Generates the numbers.
Generates the numbers.
<lang algol68>BEGIN # find numbers whose hex representation does not contain the digits 0-9 #
<lang algol68>BEGIN # find numbers whose hex representation does not contain the digits 0-9 #
INT max number = 499;
# generate and print the numbers up to 499 #
# generate and print the numbers #
# 499 is 1F3 in 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;
INT h count := 0;
# 1 hex digit numbers #
# 1 hex digit numbers #