Advertisement
Felanpro

Loopa Arrays

Jan 19th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     const int ARR_LEN = 5;
  8.  
  9.     int years[ARR_LEN] = { 1986,1988,2001,2004,2008};
  10.  
  11.     for (int i = 0; i < ARR_LEN; i++)
  12.     {
  13.         cout << years[i] << endl;
  14.     }
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement