Advertisement
SteelK

Untitled

May 23rd, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <time.h>
  3. #include <cstdlib>
  4.  
  5.  
  6. using namespace std;
  7. int main ()
  8. {
  9.    
  10.     srand(time(NULL));
  11.     setlocale(0, "");
  12.    
  13.     int mas [1024];
  14.    
  15.     for (size_t i = 0; i < 1024; i++)
  16.     {
  17.         mas[i] = rand () % 101 - 50;
  18.         cout << "mas [" << i << "] = " << mas[i] << endl;
  19.     }
  20.    
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement