Help me in solving INVESTMENT problem

My issue

am not geting the corect logic

My code

#include <iostream>
using namespace std;

int main() {
    int t;
    cin>>t;
    while(t--)
    {
        int x,y;
        cin>>x>>y;
        if(x>2*y)
        {
            cout<<"yes"<<endl;
        }
        else
        {
            cout<<"no"<<endl;
        }
    }
	// your code goes here
	return 0;
}

Problem Link: INVESTMENT Problem - CodeChef

1 Like

include
using namespace std;
int t;
int main() {
cin>>t;
while(t–){
int x,y;
cin>>x>>y;
if(x>=2*y){
cout<<β€œYES”<<endl;
}else{
cout<<β€œNO”<<endl;
}
}
return 0;
}