I fail to see how for loops are easier to read, though, because essentially, they are the same thing.
for (int i = 0; i < 10; i++);
Not much difference, is there?Code:
int i = 0;
while (i < 10)
As for goto: try writing a flow chart. Then add conditions and gotos and you'll see arrows all over the place in the end. That's why it's called a mess. This is why we use loops.