Untitled
unknown
c_cpp
2 years ago
284 B
7
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