I think this is it:) beside the fact that it still has problem displaying the invalid inputs.Ī really big tanks to David C. Type the coloues in lowercase letters only, NO CAPS. Sepnumber (resistor_value_string, resistor_value) ĭo you want to decode anothe resistor (Y/N)?Įnter the colours of the resistor's three bands,īeginning with the band nearest to the end. Resistor_value *= multiplier // Calculate final value Mult = srchItems (answer) // get multiplier index Printf("Do you want to decode anothe resistor (Y/N)?\n") Resistor_value = (resistor_value * 10) r Scanf(" %s",
0 Comments
Leave a Reply. |