Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

삼각형매크로/임다찬

From ZeroWiki
Revision as of 05:29, 7 February 2021 by imported>Unknown
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
#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;	
}