#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");
}
#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");
}