I already did I just don't know how to take the sum of the loop's value. You then said total_resistance += entered_resistance ;
and I did that and I didn't get the right answer and I have no idea what to do next so thats where I am at now.
Printable View
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.