summaryrefslogtreecommitdiff
path: root/hw2/helloYou.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hw2/helloYou.cpp')
-rw-r--r--hw2/helloYou.cpp16
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