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


#include <iostream>
#include <cmath>

int main() {
    double a, b, h, x, F;

    std::cout << "Vvedite a: ";
    std::cin >> a;
    std::cout << "Vvedite b: ";
    std::cin >> b;
    std::cout << "Vvedite h: ";
    std::cin >> h;

    std::cout << "\nF(x) = x - sin(x)\n";
    std::cout << "=================\n";

    x = a;
    while (x <= b) {
        F = x - sin(x);
        std::cout << "x = " << x << " | F = " << F << "\n";
        x = x + h;
    }

    return 0;
}