Mon Nov 27 2023 14:34:53 GMT+0000 (Coordinated Universal Time)
Saved by @AdomsNavicki
#include <fstream> #include <iostream> int main() { ifstream df("U1.txt"); ofstream rf("U1rez.txt"); int n; df >> n; for (int i = 1; i <= n; i++) { rf << "*\n"; } df.close(); rf.close(); return 0; }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments