How can I increment a variable using a loop while using another loop at
the same time?
I need to use j as a counter and increment it at the same time the i
increments. This code just keep on giving me random number for j. Help?
int i, j;//counters
for (i=0, j=1; i<=LENGTH; i++, j++)
{
printf("Player %i "\n", j);
printf("Name:\t");
fgets(name[i], MAXLENGTH, stdin);
...
No comments:
Post a Comment