Guest User

Untitled

a guest
Sep 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main () {
  6. // Variables
  7. int numInput;
  8. int numOfIntegers;
  9. bool canContinue;
  10.  
  11. cout << "Enter the amount of integers you would like to enter: ";
  12. cin >> numOfIntegers;
  13.  
  14. int oldNums = new int [numOfIntegers];
  15.  
  16. while (canContinue) {
  17. cout << "Enter a random integer: ";
  18. cin >> numInput;
  19. if (numInput != -1) {
  20.  
  21. } else {
  22. canContinue = false;
  23. }
  24. }
  25. }
Add Comment
Please, Sign In to add comment