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