#include <iostream> // func.cpp
#include <cmath> // rextester.com/EKC21250
using namespace std; 

double func(double x)
{ double rad,a,b,c,d,e,f,func;
    rad = x * M_PI / 180;
    a = pow(x, 1/4);
    b = sqrt(x);  // cout << b << endl;
    c = cos(rad);    cout << c << endl;
    d = log10(x); // cout << d << endl;
    e = exp(b);
    f = log10(b) * log(e);
    func = a + b + c + d + e + f;
    return func;
}

int main()    
{ double x = 90.; 
    cout << x << "     " << func(x) << endl;
    system("pause");
}
