You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
348 B
348 B
#PANDIGITAL NUMBERS
A number of length n is pandigital if it makes use of all the digits 1 to n exactly once.
-
The number
15234is 1 through 5 pandigital. -
The number
333is not pandigital. -
The number
0is not pandigital. -
The number
987654321is pandigital.
###DIRECTIONS Write a function that checks if a number is pandigital.