Advertisement
MeehoweCK

Untitled

Nov 26th, 2020
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int arr[6];     // we create an array with 6 elements (6 values)
  8.     srand(time(nullptr));
  9.  
  10.     arr[0] = 18;
  11.     arr[1] = 12;
  12.     arr[2] = 90;
  13.     arr[3] = 20;
  14.     arr[4] = 30;
  15.     arr[5] = 7;
  16.  
  17.     for(int i = 0; i < 6; ++i)
  18.         cout << arr[i] << '\t';
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement