From 6ae81ee58a1d2ffa8f8f5fe9dc45a8f064c31c4d Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 9 Sep 2022 15:19:13 -0600 Subject: added code --- hw2/helloYou.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hw2/helloYou.cpp (limited to 'hw2/helloYou.cpp') 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 + +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 -- cgit v1.2.3