Skip to content

Commit 70a0340

Browse files
Sync the resistor-color-duo exercise's docs with the latest data. (#731)
1 parent a668388 commit 70a0340

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

exercises/practice/resistor-color-duo/.docs/instructions.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ The program will take color names as input and output a two digit number, even i
1717

1818
The band colors are encoded as follows:
1919

20-
- Black: 0
21-
- Brown: 1
22-
- Red: 2
23-
- Orange: 3
24-
- Yellow: 4
25-
- Green: 5
26-
- Blue: 6
27-
- Violet: 7
28-
- Grey: 8
29-
- White: 9
20+
- black: 0
21+
- brown: 1
22+
- red: 2
23+
- orange: 3
24+
- yellow: 4
25+
- green: 5
26+
- blue: 6
27+
- violet: 7
28+
- grey: 8
29+
- white: 9
3030

3131
From the example above:
32-
brown-green should return 15
32+
brown-green should return 15, and
3333
brown-green-violet should return 15 too, ignoring the third color.

0 commit comments

Comments
 (0)