Solution
For this case we have 0-9 possible digits (10) and 4 spaces for the code
Part a
The number of ways are using the multiplication principle:
10x9x8x7= 5040
Part b
p= 1/5040
Part c
If digits can be repeated we have this:
10x10x10x10= 10000
1.6m questions
2.0m answers