Loops
Loops in CES allow code to be executed repeatedly while a condition is true or for a specific number of iterations.
They are useful for automating repetitive tasks, processing data, and controlling execution flow.
While loop
The while loop executes a block of code as long as the condition remains true.
Example:
Expected output
For loop
The for loop executes a block of code for a fixed number of iterations.
Example: