fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. float x, y;
  9. cin >> x;
  10. y = pow(x,3);
  11. cout << y;
  12. }
Success #stdin #stdout 0.01s 2860KB
stdin
2
stdout
8