My issue
what is problem my logic?
My code
#include <stdio.h>
int main(void) {int t;
// your code goes here
scanf("%d",&t);
while(t--){int n,x;
scanf("%d%d",&n,&x);
if(n==x){
printf("%d\n",n-x);}
else
printf("%d\n",x);
}
}
Learning course: 500 to 1000 difficulty problems
Problem Link: Flip the cards Practice Problem in - CodeChef