Advertisement
Felanpro

C++ Arrays

Dec 5th, 2015
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. //Arrays
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int myArray[5] = { 100, 200, 300, 400, 500 };
  8.  
  9.     cout << myArray[0] << endl;
  10.     cout << myArray[1] << endl;
  11.     cout << myArray[2] << endl;
  12.     cout << myArray[3] << endl;
  13.     cout << myArray[4] << endl;
  14.     system("pause");
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement