#include <iostream> using std::cout; using std::cin; using std::string; using std::getline; int main() { string text; do { getline (cin, text); cout << "Все говорят " << text << ", а ты купи слона!\n"; } while(text != " "); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter