From d126a04772c3d11d285c967bee291d6e758f3bf9 Mon Sep 17 00:00:00 2001 From: "Md. Joynal Alam" <59138477+joynalam67598@users.noreply.github.com> Date: Sat, 21 Aug 2021 19:49:39 +0600 Subject: [PATCH] HelloWorld.cpp Solve this in C++. --- 30 Days of Code/Day 00/HelloWorld.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 30 Days of Code/Day 00/HelloWorld.cpp diff --git a/30 Days of Code/Day 00/HelloWorld.cpp b/30 Days of Code/Day 00/HelloWorld.cpp new file mode 100644 index 0000000..60d076d --- /dev/null +++ b/30 Days of Code/Day 00/HelloWorld.cpp @@ -0,0 +1,15 @@ +int main() { + // Declare a variable named 'input_string' to hold our input. + string input_string; + + // Read a full line of input from stdin (cin) and save it to our variable, input_string. + getline(cin, input_string); + + // Print a string literal saying "Hello, World." to stdout using cout. + cout << "Hello, World." << endl; + + // this line print the input string. + cout<