No older revisions available
No older revisions available
~cpp #include <stdio.h> #define tri(width,height) width*height/2.0 int main(void){ int wi,he; printf("밑변 입력 : "); scanf("%d",&wi); printf("높이 입력 : "); scanf("%d",&he); printf("삼각형의 넓이는 : %f\n",tri(wi,he)); return 0; }