fork download
  1. #include<stdio.h>
  2. int main(void)
  3. {
  4. int vx,vy,vz;
  5. vx=vy=vz;
  6. puts("三つの整数を入力してください。");
  7. printf("縦:1 "); scanf("%d",&vx);
  8. printf("横: "); scanf("%d",&vy);
  9. printf("奥行き:"); scanf("%d",&vz);
  10.  
  11. printf("立方体の体積は%dです。\n",vx * vy * vz);
  12. return 0;
  13. }
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
三つの整数を入力してください。
縦:1 横: 奥行き:立方体の体積は0です。