diff --git a/Hello World/src/First output.cpp b/Hello World/src/First output.cpp new file mode 100644 index 0000000..9bbc0a9 --- /dev/null +++ b/Hello World/src/First output.cpp @@ -0,0 +1,12 @@ +// First Output +// A basic program to familiarize with the basic syntax of C++ programming + +#include + +using namespace std; + +int main() { + cout << "The text that you need to display as an output (on the screen)" << endl; // cout<<""; is used for outputing a string/text. + + return 0;// the ' ; ' marks the end of the line / line of code. +} diff --git a/Hello World/src/Hello World.cpp b/Hello World/src/Hello World.cpp deleted file mode 100644 index 44105bd..0000000 --- a/Hello World/src/Hello World.cpp +++ /dev/null @@ -1,12 +0,0 @@ -// Hello world -// A basic program - -#include - -using namespace std; - -int main() { - cout << "Hello world" << endl; - - return 0; -}