Complete the code to check if the number is positive.
if (num [1] 0) { printf("Positive number\n"); }
The condition num > 0 checks if the number is positive.
Complete the code to print "Even" if the number is even.
if (num % 2 [1] 0) { printf("Even\n"); }
The condition num % 2 == 0 checks if the number is even.
Fix the error in the if statement to check if age is at least 18.
if (age [1] 18) { printf("Adult\n"); }
The condition age >= 18 checks if age is 18 or older.
Fill both blanks to check if a number is between 10 and 20 (inclusive).
if (num [1] 10 && num [2] 20) { printf("In range\n"); }
The condition checks if num >= 10 and num <= 20, meaning num is between 10 and 20 inclusive.
Fill all three blanks to print "Valid" if score is above 50 and below 100.
if (score [1] 50 && score [2] 100) { printf("[3]\n"); }
The condition checks if score > 50 and score < 100. If true, it prints "Valid".
