#include "pch.h"
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "rus");
double x = -4.0;
double y = 0.0;
for (x;x<=4;)
y = -2.4 * x*x - 5*x + 3;
cout << "X = " << x << endl;
cout << "Y = " << y << endl<<endl<<endl;
x++;
}
return 0;
#include "pch.h"
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "rus");
double x = -4.0;
double y = 0.0;
for (x;x<=4;)
{
y = -2.4 * x*x - 5*x + 3;
cout << "X = " << x << endl;
cout << "Y = " << y << endl<<endl<<endl;
x++;
}
return 0;
}