fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5. int main()
  6. { float N,a,x,k,b;
  7. cin>>a>>x>>k>>b;
  8. if (a!=0)
  9. {
  10. float N=(0.8/sqrt(abs(a)))+(pow ( sin(x*a),2)/(k+6)+0.87*sin(x))+exp(x);
  11. cout <<"N=" <<N;
  12. }
  13. else cout <<"Error N=" ;
  14. return 0;
  15. }
Success #stdin #stdout 0s 4308KB
stdin
0 0 0 0
stdout
Error  N=