fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x,y;
  6. cin>>x;
  7. if (x>0) y=x*x*x;
  8. else
  9. y=x+x/2;
  10. }
Success #stdin #stdout 0.01s 5268KB
stdin
3
stdout
Standard output is empty