Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #include <time.h>
  4.  
  5. int main(){
  6.     srand(time(NULL));
  7.     int numerot[29];
  8.     for(int i=0;i<30;i++){
  9.         numerot[i]=rand() % 100 + 1;
  10.     }
  11.     for (int i=0;i<30;i++){
  12.         std::cout << numerot[i] << " ";
  13.     }
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement