fork download
  1. #include <stdio.h>;
  2.  
  3. int main(void)
  4. {
  5. int weight, high;
  6.  
  7. puts("長方形の面積を求めます。");
  8.  
  9. printf("横幅:\n"); scanf("%d", &weight);
  10. printf("高さ:\n"); scanf("%d", &high);
  11.  
  12. printf("面積は%dです。\a\n", weight * high);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5320KB
stdin
2
33
stdout
長方形の面積を求めます。
横幅:
高さ:
面積は66です。