Code:
while(i!=5)
{
printf("2011 Presidential Election \n");
system("pause");
printf("\nPlease Enter a vote for candidate1 \n");
printf("Enter 1 for first choice \n");
printf("Enter 2 for 2nd choice \n");
printf("Enter 3 for 3rd choice \n");
printf("Enter 0 for no vote \n");
scanf("%d",&mg[0]);
printf("Please Enter a vote for candidate2 \n");
printf("Enter 1 for first choice \n");
printf("Enter 2 for 2nd choice \n");
printf("Enter 3 for 3rd choice \n");
printf("Enter 0 for no vote \n");
scanf("%d",&da[0]);
printf("Please Enter a vote for candidate3 \n");
printf("Enter 1 for first choice \n");
printf("Enter 2 for 2nd choice \n");
printf("Enter 3 for 3rd choice \n");
printf("Enter 0 for no vote \n");
scanf("%d",&no[0]);
printf("Please Enter a vote for candidate4 \n");
printf("Enter 1 for first choice \n");
printf("Enter 2 for 2nd choice \n");
printf("Enter 3 for 3rd choice \n");
printf("Enter 0 for no vote \n");
scanf("%d",&gal[0]);
printf("Please Enter a vote for candidate5 \n");
printf("Enter 1 for first choice \n");
printf("Enter 2 for 2nd choice \n");
printf("Enter 3 for 3rd choice \n");
printf("Enter 0 for no vote \n");
scanf("%d",&hig[0]);
printf("Please Enter a vote for candidate6 \n");
printf("Enter 1 for first choice \n");
printf("Enter 2 for 2nd choice \n");
printf("Enter 3 for 3rd choice \n");
printf("Enter 0 for no vote \n");
scanf("%d",&dav[0]);
printf("Please Enter a vote for candidate7 \n");
printf("Enter 1 for first choice \n");
printf("Enter 2 for 2nd choice \n");
printf("Enter 3 for 3rd choice \n");
printf("Enter 0 for no vote \n");
scanf("%d",&mit[0]);
printf("\n Thank you for voting!! \n");
system("pause");
(i++);
mg[0]+= 1;
system("cls");
}
printf("%d,%d,%d,%d", mg[0]);
ok here's the part I am talking about, what do i do to get mg[0] to change to mg[1] on the loop and so on to mg[2] and mg[3]