Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string msg;
- cout << "Which message would you like to loop?" << endl;
- getline(cin, msg);
- cout << string(50, '\n');
- cout << msg << endl;
- do{
- cout << msg << endl;
- }while(msg == msg);
- int x;
- cin>>x;
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement