My issue
My code
// Update the program below to solve the problem
#include <stdio.h>
int main()
{
int t;
scanf("%d", &t);
while (t--)
{
int X, Y, Z;
scanf("%d %d %d", &X, &Y, &Z);
if((X%Z==0) && (Y%Z==0)){
printf("ANY\n");}
else if (Z%X ==0){
printf("CHICKEN\n");
}
else if(Y%Z==0){
printf("DUCK\n");
}
else {
printf("NONE\n");
}
}
return 0;
}
Learning course: C for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone