Advertisement
Sinux1

PS5Q7 cs 111

Mar 11th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int input;
  7.     do
  8.     {
  9.  
  10.  
  11.         cout << "Enter zero to exit:\n";
  12.         cin >> input;
  13.     } while (input != 0);
  14.  
  15.  
  16.  
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement