You are viewing a single comment's thread. Return to all comments →
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; if(n & 1) cout << "Weird"; else { if(n >=2 && n <=5) cout << "Not Weird"; else if(n >=6 && n <= 20) cout << "Weird"; else if(n > 20) cout << "Not Weird"; } return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 3: Intro to Conditional Statements
You are viewing a single comment's thread. Return to all comments →