Загрузка данных


#include <iostream>
#include <windows.h>
#include <clocale>
#include <iomanip>
using namespace std;

int main() {
    SetConsoleCP(1251);
    SetConsoleOutputCP(1251);
    setlocale(LC_ALL, "Russian");

    double a = -1, b = 16, h = 2.7;

    cout << fixed << setprecision(2);
    cout << "Табулирование функции F(x) = 1 - 5x + x^3\n";
    cout << "x\tF(x)\n";

    for (double x = a; x <= b + 0.0001; x += h) {
        double f = 1 - 5 * x + x * x * x;
        cout << x << "\t" << f << endl;
    }

    return 0;
}