1) Code being executed Active line: 1
1int i = 1;
2while (i <= 4) {
3 printf("Iteracion %d\n", i);
4 i = i + 1;
5}
6printf("Fin del ciclo\n");
Step 1: Program starts and creates variable i with value 1.
Step 1 / 12
while / interactive simulator
Here you see EXACTLY which line runs, what value the variable holds, and what appears on the console.
Press Next or Back and control each iteration yourself.