My issue
Can someone help me with the solution to this problem? The provided solution only works if N lies between 1 and 10.
My code
// Solution as follows
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
int N;
cin >> N;
if (N == 1 || N == 3 || N == 5)
{
cout << "No" << endl;
}
else
{
cout << "Yes" << endl;
}
}
}
Learning course: C++ for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone