#include <stdio.h>

int main()
{
    float base = 5.0f;
    float height = 3.0f;
    float area;

    area = base * height / 2.0f;

    printf("삼각형의 밑변 : %f\n", base);
    printf("삼각형의 높이 : %f\n", height);
    printf("삼각형의 넓이 : %f\n", area);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: