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. int main(void) {
  9. int a,b,c;
  10. a=2;
  11. b=-3;
  12. c=cube(sum(a,b));
  13. printf("数値は%dです",c);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
数値は-1です