Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <time.h>
- #include <stdio.h>
- using namespace std;
- int main()
- {
- int n;
- srand(time(NULL));
- cin >> n;
- int tab[n];
- for (int i = 0; i <= n; i++)
- {
- tab[i] = rand() % 10 + 1;
- cout << tab[i] << endl;
- }
- returm 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment