Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
284 B
0
Indexable
Never
#include <iostream>
#include <fstream>
using namespace std;

int main() {
	setlocale(LC_ALL, "Russian");
	ofstream fout("output.txt");
	int n;
	cin >> n;
	fout << "N = " << n << "\n";
	for (int i = 0; i < n; i++) {
		fout << i + 1 << "\n";
	}
	cout << "Готово!";
}
Leave a Comment