From 6fcb13beca69a86ff634f40f4b5738420087a09d Mon Sep 17 00:00:00 2001 From: sdrohit92 <91751845+sdrohit92@users.noreply.github.com> Date: Sat, 2 Oct 2021 19:55:01 +0530 Subject: [PATCH] Create Rohit.Cpp --- hacktoberfest2021_1/Rohit.Cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hacktoberfest2021_1/Rohit.Cpp diff --git a/hacktoberfest2021_1/Rohit.Cpp b/hacktoberfest2021_1/Rohit.Cpp new file mode 100644 index 0000000..15e3a41 --- /dev/null +++ b/hacktoberfest2021_1/Rohit.Cpp @@ -0,0 +1,15 @@ + + * C++ Program to Print the Name of the User using Output Stream + */ +#include +#include + +int main() +{ + std::string firstname; + + std::cout << "Hello User, Enter your first name.\n "; + std::cin >> firstname; + std::cout << "Hello " << firstname + <<". It was nice to know your name!\n"; +}