calculate resistor

I'm sorry I was a beginner, I would like to ask about the c programming language, to calculate the resistor color

with problems
1. The value entered free of the program, the value of his unit is ohm
2. The value of tolerance must also be included entered value is%
3. If the two values ​​have already been entered complete, it will exit the resistor color according to the value 1 and the value of b before.

value 1: entered number 220 = 220 ohms
a value of 2: entered number 5 = 5%

then its output is red-brown and red gold

I was confused to use the algorithm I come from Indonesia I'm sorry if my language is less understandable

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!