diff --git a/Day0-HelloWorld/C++/main_kunal.cpp b/Day0-HelloWorld/C++/main_kunal.cpp new file mode 100644 index 0000000..d9a828f --- /dev/null +++ b/Day0-HelloWorld/C++/main_kunal.cpp @@ -0,0 +1,11 @@ +#include + +using namespace std; + +int main() { + string input_string; + getline(cin, input_string); + cout << "Hello, World." << endl; + cout << input_string; + return 0; +} diff --git a/Day3-ConditionalStatement/main.cpp b/Day3-ConditionalStatement/main.cpp new file mode 100644 index 0000000..061c0c7 --- /dev/null +++ b/Day3-ConditionalStatement/main.cpp @@ -0,0 +1,23 @@ +#include + +using namespace std; + + + +int main() +{ + int N; + cin >> N; + cin.ignore(numeric_limits::max(), '\n'); + if(N%2!=0) + cout<<"Weird"; + else { + if(N>1 && N<6) + cout<<"Not Weird"; + else if(N>5 && N<=20) + cout<<"Weird"; + else + cout<<"Not Weird"; + } + return 0; +} diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..1885487 --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-midnight \ No newline at end of file