Help me in solving CHCHCL problem

My issue

give other examples

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	int t;
	int r,c,i;
	scanf("%d",&t);
	for(i=0;i<t;i++)
	{
	    scanf("%d%d",&r,&c);
	  /*  while(c%2==0)
	    c/=2;*/
	    if((c*r)%2==0)
	    printf("Yes\n");
	    else
	    printf("No");
	    
	}

}


Problem Link: Chef and Chocolate Practice Coding Problem

@manjula77
use long long int to avoid integer overflow
plzz refer my c++ code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--)
	{
	    long long int n,m;
	    cin>>n>>m;
	    n*=m;
	    if(n%2)
	    cout<<"No";
	    else
	    cout<<"Yes";
	    cout<<endl;
	}
	return 0;
}