fork download
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. float z;
  6. float x=2;
  7. int main() {
  8.  
  9. if (fabs(x-1)==0) { cout<<"impossibile perchè il denominatore è nullo!!"<<endl;}
  10.  
  11.  
  12. else { z= (sqrt(pow(x,4)-3))/fabs(x-1);
  13. cout<<"z= "<<z<<endl;
  14. }
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
z= 3.60555