Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- string name;
- cin >> name;
- cout << "Hello, " << name << '!' << endl;
- return 0;
- }
- ИЛИ:
- #include <iostream>
- using namespace std;
- int main() {
- string name;
- cin >> name;
- printf("Hello, %s!\n", name.c_str());
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement