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; +} 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