Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions 30 Days of Code/Day 00/HelloWorld.cpp
Original file line number Diff line number Diff line change
@@ -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<<input_string<<endl;

return 0;
}