Yes, both the increment to the counter as well as the final value of the loop can be changed during the iteration. The following program just displays the factorial values of counter as well as of the final value of the loop. It is just an example. However, note that for loops can not be used. This is possible in while loop.