@anu321 you forget to take input.
step 1 -first you need to declare and read the number of testcase .
step-2 declare and read x and y…
step-3 the sum of the number dice(x+y).
step-4 use if-else statement for the above condition .
step-5 if (x+y <= 6) then print ‘NO’ otherwise print ‘YES’…
int main(void) {
int t , x , y ;
scanf(“%d”,&t);
for(int i=0 ; i<t ;i++)
{
scanf(“%d %d”,&x,&y);
int sum = x + y;
if(sum <= 6)
printf(“NO\n”);
else
printf(“YES\n”);
}
return 0;
}