Skip to content

Commit

Permalink
Merge pull request #119 from exercism/sync-resistor-color-trio-exercise
Browse files Browse the repository at this point in the history
resistor-color-trio: sync
  • Loading branch information
ajborla authored Jul 12, 2024
2 parents 90fc8ae + ae72b74 commit 51d4297
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 51d4297

Please sign in to comment.