#include <iostream>
#include <fstream>
using namespace std;
int main() {
ofstream gl("file.txt");
gl << 6 << " "<< 5 << " " << 4 << " " << 3 << " " << 2 << endl;
gl << 7 << " " << 4 << " " << 3 << " " << 2 << endl;
gl << 8 << " " << 3 << " " << 2 << endl;
gl << 9 << " " << 2 << endl;
gl << 2;
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ofstream gl("file.txt");
gl << 6 << " "<< 5 << " " << 4 << " " << 3 << " " << 2 << endl;
gl << 7 << " " << 4 << " " << 3 << " " << 2 << endl;
gl << 8 << " " << 3 << " " << 2 << endl;
gl << 9 << " " << 2 << endl;
gl << 2;
return 0;
}