There are 10000 such codes. Each of the numbers 0-9 can be in the first position. With each such first digit, each of the numbers 0-9 can be in the second position. With each such pair of the first two digits, each of the numbers 0-9 can be in the third position. etc.
Chat with our AI personalities
1000
Assuming that the first digit of the 4 digit number cannot be 0, then there are 9 possible digits for the first of the four. Also assuming that each digit does not need to be unique, then the next three digits of the four can have 10 possible for each. That results in 9x10x10x10 = 9000 possible 4 digit numbers. If, however, you can not use the same number twice in completing the 4 digit number, and the first digit cannot be 0, then the result is 9x9x8x7 = 4536 possible 4 digit numbers. If the 4 digit number can start with 0, then there are 10,000 possible 4 digit numbers. If the 4 digit number can start with 0, and you cannot use any number twice, then the result is 10x9x8x7 = 5040 possilbe 4 digit numbers.
2
ten factorial = 10! = 3,628,800
9