fork download
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int a=3, b=5;
  5. int x=2;
  6. float y;
  7. int main() {
  8.  
  9. y= (a*pow(x,3)-3*pow(x,5))/ (2*a*b);
  10.  
  11. cout<<"y="<< y<<endl;
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
y=-2.4