This is a discussion on noob c ++ question. Summations within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by Elysia Put a different way: what does the code do? Can you write it in pseudo code? ...
I got it and it works. I set the total_resistance = 0 and now it works. I also put it inside the for loop. Thanks for the help.
Putting it inside the for loop was the answer.
A little late to the party.
Plus, it would be good if you don't spoil answers to such elementary logic problems.
Logic problems are great exercises for newbies which they really must master.