Skip to content

Commit

Permalink
Sync the resistor-color-trio exercise's docs with the latest data. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Jul 11, 2024
1 parent 37a5aca commit f392ffd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions exercises/practice/resistor-color-trio/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ For this exercise, you need to know only three things about them:
The program will take 3 colors as input, and outputs the correct value, in ohms.
The color bands are encoded as follows:

- Black: 0
- Brown: 1
- Red: 2
- Orange: 3
- Yellow: 4
- Green: 5
- Blue: 6
- Violet: 7
- Grey: 8
- White: 9

In `resistor-color duo` you decoded the first two colors.
- black: 0
- brown: 1
- red: 2
- orange: 3
- yellow: 4
- green: 5
- blue: 6
- violet: 7
- grey: 8
- white: 9

In Resistor Color Duo you decoded the first two colors.
For instance: orange-orange got the main value `33`.
The third color stands for how many zeros need to be added to the main value.
The main value plus the zeros gives us a value in ohms.
Expand Down

0 comments on commit f392ffd

Please sign in to comment.