计算三角形的 三个边长和面积(a. b . c p=(a+b+c)/2 s=根号下p(p-a)*(p-b)*(p-c) VB程序怎么 做?
计算三角形的 三个边长和面积(a. b . c p=(a+b+c)/2 s=根号下p(p-a)*(p-b)*(p-c) VB程序怎么 做?
日期:2022-04-05 05:57:07 人气:1
#include<stdio.h>#include<math.h>int main(){double a,b,c,s,p;printf("input a,b,c: ");scanf("%lf,%lf,%lf",&a,&b,&c);p=(a+b+c)/2;s=sqrt(p*(p-a)*(p-b)*(p-c));printf("三角形周长