fork download
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. double x, m;
  7. cin>>x;
  8.  
  9. if (x>0) { m=tan(pow(x, 3)) + exp(x) ; }
  10. else if (x<0) { m=tan(pow(x, 7)) + pow(exp(x), 5); }
  11. else if (x=0) { m=tan(x ) + pow(exp(x), 7); }
  12.  
  13. cout<<"Ответ: m="<<m;
  14. return 0;
  15. }
Success #stdin #stdout 0s 15224KB
stdin
5
stdout
Ответ: m=147.631