Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <time.h>
- #include <cstdlib>
- using namespace std;
- int main ()
- {
- srand(time(NULL));
- setlocale(0, "");
- int mas [1024];
- for (size_t i = 0; i < 1024; i++)
- {
- mas[i] = rand () % 101 - 50;
- cout << "mas [" << i << "] = " << mas[i] << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement