#include <iostream> using namespace std; int main() { setlocale(LC_ALL, "Russian"); float x = -2; cout << "Y = 2x^2-5x-8" << endl; while (x < 2.5) { cout << "---------" << endl; cout << "X = " << x << endl; cout << "Y = " << 2 * x * 2 * x - 5 * x - 8 << endl; cout << "---------" << endl; x += 0.5; } return 0; } C #include <iostream> using namespace std; int main() { setlocale(LC_ALL, "Russian"); float x = -2; cout << "Y = 2x^2-5x-8" << endl; while (x < 2.5) { cout << "---------" << endl; cout << "X = " << x << endl; cout << "Y = " << 2 * x * 2 * x - 5 * x - 8 << endl; cout << "---------" << endl; x += 0.5; } return 0; } --- Сообщение объединено с предыдущим 17 апр 2021 ошибся, там 2*x*x-5*x-8