Hi, I have to build a program that will find the equivalent resistances in series and parallel of any number of resistances entered at the keyboard. So far i have this: I really don't know where i went wrong. The value returned for RTS is the same value as the user entered and the value returned for RTP is the last value for the resistor entered. I reckon it's a problem with the loop but what it is i don't know. Help please?