Write a C++ program to print the name of user that is entered
Answers
Answered by
0
Answer:
C++ Program to Print the Name of the User using Streams
- * C++ Program to Print the Name of the User using Output Stream.
- #include <string>
- 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";
Answered by
3
* C++ Program to Print the Name of the User using Output Stream.#include <string>std::string firstname;std::cout << "Hello User, Enter your first name.\ n ";std::cin >> firstname;std::cout << "Hello " << firstname.<<". It nice to know your name!\ n";
Similar questions