
Код программы:
#include <iostream>
#include <locale>
#include <time.h>
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
double y, x, k, t, p;
t = 4.1;
cout << "Введите значение переменной p = ";
cin >> p;
k = sqrt(p*t);
x = p * t*t + sqrt(k);
y = pow(tan(pow(x, 2)), 3) + k * t;
cout << "y = " << y << "\nx = " << x << "\nk = " << k << endl;
return 0;
}