Advertisement
JustACodingStudent

Infinity Loop v2

Mar 7th, 2014
79
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. {
  7.     string msg;
  8.     cout << "Which message would you like to loop?" << endl;
  9.     getline(cin, msg);
  10.     cout << string(50, '\n');
  11.     cout << msg << endl;
  12.     do{
  13.         cout << msg << endl;
  14.     }while(msg == msg);
  15.     int x;
  16.     cin>>x;
  17.     return(0);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement