Help help me with this, In this problem i have to print x-y, but i'm not getting with this platform

My issue

My code

#include <stdio.h>

int main(void) {
	int x,y,t;
	scanf("%d",&t);
  //  for(int i=0;i<t;i++){
	    scanf("%d %d",&x, &y);
	   if(y<=x){
	    printf("%d \n", x-y);
    }
    else 
    printf("%d \n", y-x);
  //  }
	return 0;
}


Problem Link: PRACLIST Problem - CodeChef

@anugoud
u have to do it in t loop the loop u have commented