summaryrefslogtreecommitdiff
path: root/hw2/helloYou.cpp
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2022-09-09 15:22:01 -0600
committerGitHub <noreply@github.com>2022-09-09 15:22:01 -0600
commite2ab34e60f544d9d6902fe3eb8e0947009234955 (patch)
tree0a93bb11a63e8dc62663925f7f90f41576229dc2 /hw2/helloYou.cpp
parent6ae81ee58a1d2ffa8f8f5fe9dc45a8f064c31c4d (diff)
added commentsHEADmaster
Diffstat (limited to 'hw2/helloYou.cpp')
-rw-r--r--hw2/helloYou.cpp4
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