📜  直角三角形的面积 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:41.589000             🧑  作者: Mango

代码示例1
#include 
int main(){
    float h, b, A;
    printf("What is the Height and base of the triangle: \n");
    scanf("%f %f", &h, &b);
    A = 0.5 * b *h;
    printf("Area is %f\n", A);
}