diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2022-09-09 15:22:01 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 15:22:01 -0600 |
commit | e2ab34e60f544d9d6902fe3eb8e0947009234955 (patch) | |
tree | 0a93bb11a63e8dc62663925f7f90f41576229dc2 /hw2/helloYou.cpp | |
parent | 6ae81ee58a1d2ffa8f8f5fe9dc45a8f064c31c4d (diff) |
Diffstat (limited to 'hw2/helloYou.cpp')
-rw-r--r-- | hw2/helloYou.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw2/helloYou.cpp b/hw2/helloYou.cpp index 98f06ce..8f0dbbb 100644 --- a/hw2/helloYou.cpp +++ b/hw2/helloYou.cpp @@ -10,7 +10,7 @@ using namespace std; int main() {
string name;
cout << "Please enter your name below:\n";
- cin >> name;
- cout << "Hello, " << name << "!";
+ cin >> name; // Takes user input
+ cout << "Hello, " << name << "!"; // Prints user's input
return 0;
}
\ No newline at end of file |