#include
#include
float f(float x);
int main()
{
float x;
std::cout << "Введите x: ";<br> std::cin >> x;
std::cout << "y=" << f(x);<br>}
float f(float x)
{
float a = 3.6F;
float b = 1.7F;
if (6 < x && x <= 8)<br> return (exp(a*x) + exp(-b*x)) / 2;
else if (x <= 6)<br> return sin(a*x) + 2;
else
return pow(cos(b*x), 2);
}