Advertisement
Kagalive

FlowerBox

Sep 30th, 2020
1,216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6.   cout << "Message: ";
  7.   string message{};
  8.   getline(cin, message);
  9.  
  10.   string flowerLine(message.length() + 4, '*');
  11.  
  12.   cout << '\n';
  13.  
  14.   cout << flowerLine << '\n';
  15.   cout << "* " << message << " *\n";
  16.   cout << flowerLine << '\n';
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement