三角形分类(C++)

#include 
using namespace std;
int a,b,c;
int len[4]={0};
int main()
{
	cin>>a>>b>>c;
	len[1]=a,len[2]=b,len[3]=c;
	sort(len+1,len+4);
	if((len[1]+len[2])<=len[3]){
		cout<<"Not triangle"<(len[1]*len[1]+len[2]*len[2])){
			cout<<"Obtuse triangle"<

你可能感兴趣的:(c++,算法,数据结构)