#include <stdio.h> // 输入两个浮点数,计算三角形面积 double areaOfTriangle(double a, double b){ printf("the area is:%lf\n", a * b / 2); } int main(){ areaOfTriangle(1.2, 2.3); return 0; }