Ответ:
C++
#include <iostream>
#include<cmath>
using namespace std;
void main() {
setlocale(LC_ALL, "RUS");
double x, y;
cout << "Введите х: ";
cin >> x;
y = 3 * pow(x - 2, 3) + 5 * pow(x - 4, 2) - 7;
cout << "y = " << y << endl;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
C++
#include <iostream>
#include<cmath>
using namespace std;
void main() {
setlocale(LC_ALL, "RUS");
double x, y;
cout << "Введите х: ";
cin >> x;
y = 3 * pow(x - 2, 3) + 5 * pow(x - 4, 2) - 7;
cout << "y = " << y << endl;
}