Complete the code to print numbers from 0 to 4.
for (int i = 0; i [1] 5; i++) { printf("%d\n", i); }
The loop should run while i is less than 5 to print numbers 0 to 4.
Complete the code to sum numbers from 1 to 5 using a for loop.
int sum = 0; for (int i = 1; i [1] 6; i++) { sum += i; } printf("%d\n", sum);
The loop should run while i is less than 6 to include numbers 1 to 5.
Fix the error in the for loop condition to print even numbers from 2 to 10.
for (int i = 2; i [1] 10; i += 2) { printf("%d\n", i); }
The loop should run while i is less than or equal to 10 to include 10.
Fill both blanks to create a for loop that prints numbers from 10 down to 1.
for (int i = [1]; i [2] 1; i--) { printf("%d\n", i); }
The loop starts at 10 and runs while i is greater than or equal to 1.
Fill all three blanks to create a for loop that prints squares of numbers from 1 to 5.
for (int [1] = 1; [2] [3] 5; [1]++) { printf("%d\n", [1] * [1]); }
The loop variable is i, and the loop runs while i is less than or equal to 5.
