fork download
  1. #include <cstdio>
  2.  
  3. int main() {
  4. int w = 5; // 밑변
  5. int h = 3; // 높이
  6. float area = 0.5f * w * h; // 넓이 계산
  7.  
  8. printf("%d*%d/2\n", w, h, area);
  9. return 0;
  10. }
Success #stdin #stdout 0s 5252KB
stdin
Standard input is empty
stdout
5*3/2