~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;	
}
Retrieved from http://wiki.zeropage.org/wiki.php/삼각형매크로/임다찬
last modified 2021-02-07 05:29:39