English, asked by mirafak77, 4 months ago

how to print my name on c+++​

Answers

Answered by muwin
1

<<". It was nice to know your name!\ n";

Explanation:

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

*

C++ Program to Print the Name of the User using Output Stream.

1. #include <string>

2. std::string firstname;

3. std::cout << "Hello User, Enter your first name.\ n ";

4. std::cin >> firstname;

5. std::cout << "Hello " << firstname.

<<". It was nice to know your name!\ n";

Similar questions