fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float w;
  5. float h;
  6. printf("Enter height and width\n");
  7. scanf("%f %f", &h, &w);
  8.  
  9. printf("넓이 %f", w * h/2.0f);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 10304KB
stdin
3 5
stdout
Enter height and width
넓이 7.500000