Advertisement
olaaa

Untitled

Nov 7th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int n = 5;
  9. int tab [5];
  10. for (int i = 0; i < n; i++) {
  11.  
  12. srand(time(NULL));
  13. tab[i] = rand() % 10+1;
  14.  
  15.  
  16.  
  17.  
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement