#include
#include
using namespace std;
#define PI 3.14159265
double f(int n, double x)
{
double p = (double) tan(n * PI / 2 + x);
if (n == 1)
{
return p;
}
else
{
return f(n - 1, p);
}
}
int main()
{
cout << "n = ";<br> int n;
cin >> n;
cout << "x = ";<br> double x;
cin >> x;
cout << "Ответ: " << f(n, x) << endl;<br> return 0;
}