Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int arr[6]; // we create an array with 6 elements (6 values)
- srand(time(nullptr));
- arr[0] = 18;
- arr[1] = 12;
- arr[2] = 90;
- arr[3] = 20;
- arr[4] = 30;
- arr[5] = 7;
- for(int i = 0; i < 6; ++i)
- cout << arr[i] << '\t';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement