Computer Science, asked by Boomiga, 10 months ago


Write a C++ program to accept and print your name?​

Answers

Answered by sirichandana9265
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 Itschocolaty
1

your answer is ......For Print, it's Ctrl+P or Ctrl+Shift-F12. Print Preview is Ctrl+F2.

Similar questions