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
English,
3 months ago
English,
3 months ago
Science,
6 months ago
Hindi,
6 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago