#include <bits/stdc++.h> using namespace std; ofstream fout("1GB.txt"); int main() { long long s = 1024 * 1024 * 1024; for (; s; s -= sizeof('*')) { fout << '*'; // system("cls"); // cout << 1 - (s / 1024.0 / 1024.0) << "GB/1GB\n"; } fout.close(); return 0; }