Help me in solving TOP10 problem

My issue

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	int X,T;
	scanf("%d",&X);
	if (X>10)
	{
	    printf("\nNO");
	}
	else{
	    printf("\nYES");
	}
	return 0;
}


Problem Link: TOP10 Problem - CodeChef

include <stdio.h>

int main(void) {
// your code goes here
int t;
scanf(ā€œ%dā€,&t);

while(t--){
    int x;
    scanf("%d",&x);
    if(x<=10) printf("YES\n");
    else printf("NO\n")
}
return 0;

}