Computer Science, asked by nityam2225, 10 months ago

Write a C++ program to print the name of user that is entered

Answers

Answered by ᏕɱartYᎶᴜʀɭ
0

Answer:

C++ Program to Print the Name of the User using Streams

  1. * C++ Program to Print the Name of the User using Output Stream.
  2. #include <string>
  3. std::string firstname;
  4. std::cout << "Hello User, Enter your first name.\ n ";
  5. std::cin >> firstname;
  6. std::cout << "Hello " << firstname.
  7. <<". It was nice to know your name!\ n";

Answered by Anonymous
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