Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- cout << "Message: ";
- string message{};
- getline(cin, message);
- string flowerLine(message.length() + 4, '*');
- cout << '\n';
- cout << flowerLine << '\n';
- cout << "* " << message << " *\n";
- cout << flowerLine << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement