diff --git a/30 Days of Code/Day 03/Intro to Conditional Statements.cpp b/30 Days of Code/Day 03/Intro to Conditional Statements.cpp new file mode 100644 index 0000000..e3e4ba4 --- /dev/null +++ b/30 Days of Code/Day 03/Intro to Conditional Statements.cpp @@ -0,0 +1,18 @@ + +int main() +{ + string N_temp; + getline(cin, N_temp); + + int n = stoi(ltrim(rtrim(N_temp))); + + if(n & 1) cout<<"Weird"<=2 && n<=5) cout<<"Not Weird"<=6 && n<=20) cout<<"Weird"<20) cout<<"Not Weird"<