fork download
  1.  
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int function = -10;
  9. while ( function > 4 && function < 0){
  10. cout << "Addition = 1, Subtraction = 2, Multyply = 3, Division = 4" << endl;
  11. cin >> function;
  12. cout << function << endl;
  13.  
  14. };
  15. cout << ":(" << endl;
  16.  
  17. system("pause");
  18. return 0;
  19. }
Success #stdin #stdout #stderr 0s 3340KB
stdin
1
stdout
:(
stderr
sh: pause: not found