for (initialization; condition; afterthought)
statement
initialization is first executed.
and then it goes to condition part and if is true
now it goes into statement part
After executing all the statements
it goes to afterthought
And then go back to condition part until it returns false.
I thougt I knew well this concept of iterating but when i encountered more diffucult and complex for loop I needed to learn again this basic things. So I write it easily to do some revision.