Advertisement
Felanpro

Loopa Arrays (2)

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