Complete the code to declare a variable with a clear name.
int [1] = 10;
Using descriptive variable names like count makes the code easier to understand.
Complete the code to add a comment explaining the purpose of the function.
/* [1] */ void printMessage() { printf("Hello!\n"); }
Comments should clearly describe what the function does to help readers understand quickly.
Fix the error in the code by choosing the best variable name for readability.
int [1] = 5; printf("Value: %d\n", [1]);
Using value clearly shows what the variable holds, improving readability.
Fill both blanks to create a clear and readable for-loop.
for (int [1] = 0; [1] [2] 10; [1]++) { printf("%d\n", [1]); }
Using index as the loop variable and < as the condition makes the loop clear and standard.
Fill all three blanks to write a readable if-statement checking if a number is positive.
if ([1] [2] 0) { printf("[3] is positive\n"); }
Using num as the variable, > as the operator, and number in the message makes the code clear and easy to read.