Complete the code to check if a number is positive.
if ([1] > 0) { printf("Positive number\n"); }
The variable x is used to check if it is greater than zero.
Complete the code to print "Even" if the number is divisible by 2.
if ([1] % 2 == 0) { printf("Even\n"); }
The variable num is used to check divisibility by 2.
Fix the error in the condition to check if age is at least 18.
if (age [1] 18) { printf("Adult\n"); }
The operator >= 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 number must be greater than or equal to 10 and less than or equal to 20.
Fill all three blanks to print "Teenager" if age is between 13 and 19 inclusive.
if (age [1] 13 && age [2] 19 && age [3] 20) { printf("Teenager\n"); }
The condition checks if age is at least 13, at most 19, and less than 20 (which is redundant but part of the exercise).
