For Loop in VG Language
A for loop is used when you know in advance how many times you want to execute a block of code. It consists of:
- Initialization – A variable is initialized before the loop starts.
- Condition – The loop runs as long as this condition is true.
- Update – The variable is updated after each iteration.