Help me in solving BURGERS problem

My issue

after running the code its saying that time limit is exceeded. How to fix this?

My code

#include <stdio.h>

int main(void) {
	int t;
	scanf("%d",&t);
	while("t--")
	{
	    int x,y;
	    scanf("%d%d",&x,&y);
	    if(x>y)
	    {
	        printf("%d\n",y);
	    }
	    else printf("\n%d",x);
	}
	return 0;
}


Problem Link: BURGERS Problem - CodeChef

@piratepatty
u have written t-- in “” .
corrected your code
include <stdio.h>

int main(void) {
int t;
scanf(“%d”,&t);
while(“t–”)
{
int x,y;
scanf(“%d%d”,&x,&y);
if(x>y)
{
printf(“%d\n”,y);
}
else printf(“\n%d”,x);
}
return 0;
}

you have written an infinite loop. The condition given in the while loop in incorrect. try using while(t>0) and place t-- in the while loop.