Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<time.h>
- #include<fstream>
- #include<ctime>
- #include<random>
- using namespace std;
- int main()
- {
- vector<double> VEK (25);
- ofstream fout;
- fout.open("write.txt");
- const int n=25;
- cout << "enter count of elements";
- double mas[n];
- for (int i = 0; i < n; i++)
- {
- mas[i] = (rand() % 100 )/ 10.0;
- }
- for (int i = 0; i < n; i++)
- {
- fout << mas[i]<<" ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement