#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;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#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;
}