Advertisement
Guest User

helloworld.cxx

a guest
Jun 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     bool isdone = false;
  8.     string input = "Null";
  9.     int money = 0;
  10.     while(!isdone){
  11.     cout << "slect  path long med short  ";
  12.     cin >> input;
  13.     if (input == "long")
  14.     {
  15.         isdone = true;
  16.         money++;
  17.         cout << "you know have " << money << endl;
  18.     }
  19.     }
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement