All we need to know is: Increment operators are used to increasing the value by one while decrement works opposite increment.
Pre-increment (++i) − Before assigning the value to the variable, the value is incremented by one.
Post-increment (i++) − After assigning the value to the variable, the value is incremented.
we declare loop in our codes like below:
for (initialization; condition; increment/decrement)
But iteration follows the steps as given below: