fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void)
  4. {
  5. int h,c,k;
  6. int num = 2;
  7. scanf ("%d,%d,%d",&h,&c,&k);
  8.  
  9. printf("volume:%d*%d*%d=%d",h,c,k,h*c*k);
  10. printf("表面積:%d*\"%d*%d+%d*%d+%d*%d\"=%d",num,h,c,h,k,c,k,num*(h*c+h*k+c*k));
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 5280KB
stdin
2,5,8
stdout
volume:2*5*8=80表面積:2*"2*5+2*8+5*8"=132