Steply

A code has 4 digits, how many codes

Step by step, with the reason for every step · Counting choices · Probability

Step by step

The question

Question: A code has 4 digits (0 to 9).

How many codes are there?

1 Count the choices

2 Multiply

Every choice goes with every other choice.

So we multiply them all: 10 × 10 × 10 × 10.

codes = 10 × 10 × 10 × 10

This is the counting principle: multiply the number of choices.

counting principle:
multiply the choices

Careful!

We do not add the choices.

Every choice goes with every other one, so we multiply.

Careful: not 10 + 10 + 10 + 10 = 40 ✗

10 times 10 is 100.

100 times 10 is 1000.

1000 times 10 is 10000.

10 × 10 = 100
100 × 10 = 1000
1000 × 10 = 10000

So there are 10000 codes.

codes = 10000

3 Check

Let's check in another order.

First 10 times 10 times 10 is 1000.

10 × 10 × 10 = 1000

Then 10 times 1000 is 10000.

The same.

So the answer is right!

10 × 1000 = 10000

Let's look back.

First: count the choices.

Then: multiply.

Last: check.

Answer
codes = 10000

Your turn

Try this one yourself, then check:

Show the answer
codes = 100

More from Counting choices

The whole lesson: Counting choices →