Answer:
#include <iostream>
#include <string>
int main() {
std::string name;
std::cout << "Please enter a name: ";
std::cin >> name;
std::cout << "Hello " << name<<"!";
}
Step-by-step explanation:
Asks for your name and adds Hello {name}!
3.4m questions
4.3m answers