fork download
  1. #include <stdio.h>
  2. int sum(int x,int y){
  3. return x+y;
  4. }
  5. int cube(int x){
  6. return x*x*x;
  7. }
  8.  
  9. int main(void) {
  10. int a,b,c;
  11. scanf("%d%d", &a,&b);
  12. c=cube(sum(a,b));
  13. printf("%d", c);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5316KB
stdin
2
-3
stdout
-1