• Напишите программу на с++
    Поставлю лучший ответ !

    question img

Ответы 1

  • #include <iostream>#include <fstream>using namespace std;int main(){    ifstream in;    ofstream out;    in.open("input.txt");    out.open("output.txt");    int n;    in >> n;    for (int i=1; i<=n; i++) out << 2*i-1 << " ";    in.close();    out.close();    return 0;}Пример:Файл input.txt:5Файл output.txt^1 3 5 7 9
    • Автор:

      raquel94
    • 5 лет назад
    • 0
  • Добавить свой ответ

Войти через Google

или

Забыли пароль?

У меня нет аккаунта, я хочу Зарегистрироваться

How much to ban the user?
1 hour 1 day 100 years