U E D R , A S I H C RSS

삼각형매크로/임다찬

~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;	
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:39
Processing time 0.0160 sec