编写至少三个计算图形面积的函数,c语言 要求: (1)程序运行时,首先可 ...答:include<math.h> main(){ printf("选择1.计算三角形;2.计算矩形;3.计算梯形 面积:");int n;scanf("%d",&n);switch(n){ case 1:printf("请输入三角形的边长:");float a1,b1,c1,s1,p;scanf("%f%f%f",&a1,&b1,&c1);p=(a1+b1+c1)/2;s1=sqrt(p*(p-a1)*(p-b1)*(p-c1)...