蒟蒻小白求教。。。各位别嫌我菜
查看原帖
蒟蒻小白求教。。。各位别嫌我菜
394216
DaisyN楼主2020/9/28 14:30
#include<stdio.h>
int main(){
	int a,b,c;
	double p,s,m;
	scanf("%d %d %d",&a,&b,&c);
	p=0.5*(a+b+c);
	s=p*(p-a)*(p-b)*(p-c);
	m=sqrt(s);
	printf("%.1lf", m);
	return 0;
} 
2020/9/28 14:30
加载中...