0

Here is the problem with my code. I am not able to figure it out.

#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int N; cin >> N; cin.ignore(numeric_limits<streamsize>::max(), '\n'); if(N%2!=0) { cout<< "Weird" <<endl; } else if(N%2==0) { if(N>2 && N<5) { cout<< "Not Weird" <<endl; } } else if(N%2==0) { if(N>0 && N<20) { cout<< "Weird" <<endl; } } else { cout<< "Not Weird" <<endl; } return 0; }

25th May 2018, 5:22 PM
gfdgdfgd
1 ответ