Your changing the variable named i to one named r would NOT change what happens.
You need to remove the code that changes the value of i (i++)
What do you want shown where (i++) is used?
You...
Type: Posts; User: Norm
Your changing the variable named i to one named r would NOT change what happens.
You need to remove the code that changes the value of i (i++)
What do you want shown where (i++) is used?
You...
What happens when you compile and execute the program? Does it do what you want?
Instead of having (i++) have (r)
Use a different variable from the loop control variable.