Help me in solving WATERCONS problem

My issue

i dont know how while concept is performing here

My code

#include <stdio.h>

int main(void) {
    int t,i=1;
    scanf("%d",&t);
    while(i>=t)
    {
        int x;
        scanf("%d",&x);
        if(x>=t)
        {
            printf("yes");
        }
        else
        {
            printf("no");
        }
        i++;
    }
    
	return 0;
}


Learning course: Practice C
Problem Link: CodeChef: Practical coding for everyone

@sweeadhha
While loop is for test cases . That u have to take inputs t times and also print the output t times.
Plzz refer the following solution

#include <stdio.h>

int main(void) {
	// your code goes here
	int T,X;
	scanf("%d",&T);
	for (int i=0;i<T;i++){
	    scanf("%d",&X);
	    if (X<2000){
	        printf("NO\n");
	    }
	    else{printf("YES\n");
	}
	}
	return 0;
}