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