If you include 0000, ten thousand unique four digit codes are possible.
10*9*8*7*6=30,240
the repeated digits can lie in any of 3 positions:XXYZ,YXXZ, or YZXXTherefore, the number of different possible repeated digit combinations is 10×3=30 (there are 10 different possible digits).There are then 9 values left that Y could be, after the X's have their values, and 8 values left that Z could be, to ensure no unintended repeated numbers.This gives (10×3)×9×8=2160. There are therefore 2160 possible codes.
104 = 10000 if digits can be repeated, 5040 if not. The above answers assume a code can start with a 0. If not, 9000 if digits can be repeated and 4536 if not.
As far as I can tell, all 5 digit numbers are potential zip codes, so there are 99999 + 1 potential zip codes, or 100,000. Many of these are not actually is use.
6,720 combinations.
The number of 4 digit codes, using different digits, is 10*9*8*7 = 5040. However, computer passwords can, usually, have repeated digits and, if that is allowed, you can have 104 = 10000 codes.
If letters cannot be repeated, then there are 26 options for the first letter. There are then 25 options for the second letter. There are then 24 options for the third letter, and 23 for the fourth. This means that in total there are 26x25x24x23 options for the code. 26x25x24x23 = 358,800. Thus, there are 358,800 possible 4 letter codes.
1000
10,000
8 digits.
the first wheel has 8 possibilities. the second wheel has only 7 possibilities as it cannot be the same as the first. the third wheel has 6 possibilities and the last has only 5 possibilities. 8*7*6*5=1680