Untitled

 avatar
unknown
c_cpp
a year ago
284 B
3
Indexable
#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 << "Готово!";
}
Editor is loading...
Leave a Comment