SHARE
TWEET

Untitled

a guest Jun 19th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.         int numOfIntegers;
  8.  
  9.         cout << "How many integers would you like to enter? ";
  10.         cin >> numOfIntegers;
  11.         cout << "Please enter " << numOfIntegers << " integers. ";
  12.  
  13.         int data[numOfIntegers];
  14.         for(int i=0; i<numOfIntegers; i++)
  15.         {
  16.                 cin >> data[i];
  17.         }
  18.         return 0;
  19. }
RAW Paste Data
Top