Ответ:
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
int x;
cout << "Введите значение x: ";
cin >> x;
if (x < 1.22) cout << "F(x)= " << x * cos(x) << endl;
if (x >= 1.22) cout << "F(x)= " << (5 * x*x*x) + 1.7 << endl;
system("pause");
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
int x;
cout << "Введите значение x: ";
cin >> x;
if (x < 1.22) cout << "F(x)= " << x * cos(x) << endl;
if (x >= 1.22) cout << "F(x)= " << (5 * x*x*x) + 1.7 << endl;
system("pause");
}