From c650b7c8289fb53d5f0bda2204b1f466e2b984a0 Mon Sep 17 00:00:00 2001 From: Navinda Lankesh <47824016+paradocx96@users.noreply.github.com> Date: Fri, 30 Oct 2020 20:56:19 +0530 Subject: [PATCH 1/2] Added C++ HelloWorld! --- C++/helloWorld.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 C++/helloWorld.cpp diff --git a/C++/helloWorld.cpp b/C++/helloWorld.cpp new file mode 100644 index 0000000..d4f3fcc --- /dev/null +++ b/C++/helloWorld.cpp @@ -0,0 +1,13 @@ +// Header file for input output functions +#include + +using namespace std; + +// main function +int main() +{ + // prints hello world + cout << "Hello World"; + + return 0; +} \ No newline at end of file From 48f7d512eff6852ee1fc060f4014bf084f35f1d7 Mon Sep 17 00:00:00 2001 From: Navinda Lankesh <47824016+paradocx96@users.noreply.github.com> Date: Fri, 30 Oct 2020 21:08:43 +0530 Subject: [PATCH 2/2] Added C++ For Loop --- C++/forLoop.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 C++/forLoop.cpp diff --git a/C++/forLoop.cpp b/C++/forLoop.cpp new file mode 100644 index 0000000..e219a5c --- /dev/null +++ b/C++/forLoop.cpp @@ -0,0 +1,15 @@ +// Header file for input output functions +#include + +using namespace std; + +// main function +int main() +{ + // prints hello world 10 times + for (int i = 1; i < 11; i++) { + cout << "Hello World! " << i << "\n"; + } + + return 0; +}