how to print my name on c+++
Answers
Answered by
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
Math,
2 months ago
Social Sciences,
2 months ago
Hindi,
2 months ago
Science,
4 months ago
Hindi,
4 months ago
Computer Science,
9 months ago
Computer Science,
9 months ago
Computer Science,
9 months ago