Help with While Loop and array
I have to make a program for a voting machine for a presidential election as part of a school assignment. my question is that i'm using a while loop and numerous arrays. In the while loop , the data i type in gets overwritten every time the while loop executes in the loop. How to i switch the data location from for example i[0] to i[1] when the loop runs for the second time.
If anyone could also tell me how to do proportional representation too, could you let me know.
Thanks