diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2022-09-09 15:19:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 15:19:13 -0600 |
commit | 6ae81ee58a1d2ffa8f8f5fe9dc45a8f064c31c4d (patch) | |
tree | 29637ebf9203bce4029b9405feec8d303d9610c1 /hw2/helloYou.cpp | |
parent | 21aaa09ec4ada850c7ff11f61e31a3c64ac3ddf6 (diff) |
added code
Diffstat (limited to 'hw2/helloYou.cpp')
-rw-r--r-- | hw2/helloYou.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/hw2/helloYou.cpp b/hw2/helloYou.cpp new file mode 100644 index 0000000..98f06ce --- /dev/null +++ b/hw2/helloYou.cpp @@ -0,0 +1,16 @@ +// CSCI 1300 Fall 2022
+// Author: Navan Chauhan
+// Recitation: 307 – TA name
+// Homework 2 - Problem 2
+
+#include<iostream>
+
+using namespace std;
+
+int main() {
+ string name;
+ cout << "Please enter your name below:\n";
+ cin >> name;
+ cout << "Hello, " << name << "!";
+ return 0;
+}
\ No newline at end of file |