Write a C++ program to accept and print your name?
Answers
Answered by
1
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
1
your answer is ......For Print, it's Ctrl+P or Ctrl+Shift-F12. Print Preview is Ctrl+F2.
Similar questions
Sociology,
5 months ago
Science,
5 months ago
Social Sciences,
10 months ago
Hindi,
1 year ago
English,
1 year ago