int main() {
int t; // Number of test cases
printf(“Enter the number of test cases: “);
scanf(”%d”, &t); // Input for the number of test cases
while (t--) { // Loop through each test case
int a, b, X;
printf("Enter values for a, b, and X: ");
scanf("%d %d %d", &a, &b, &X); // Input values for a, b, and X
// Check the condition
if (2 * a + 2 * b + a * b == X) {
printf("Yes\n");
} else {
printf("No\n");
}
}
return 0;