Răspuns :
COROANA TE ROG!!!
#include<iostream>
#include<cmath>
#include<cstring>
using namespace std;
struct triunghiuri{
char nume[4];
float a, b, c, ang1, ang2;
}v[101];
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
cin.get(v[i].nume, 4); cin.get();
cin>>v[i].a>>v[i].b>>v[i].c>>v[i].ang1>>v[i].ang2;
}
for(int i=1;i<=n;i++){
cout<<"triunghiul "<<v[i].nume<<" este ";
if(v[i].a==v[i].b&&v[i].b==v[i].c&&v[i].a==v[i].c) cout<<"echilateral";
if(v[i].a==v[i].b||v[i].b==v[i].c||v[i].a==v[i].c) cout<<"isoscel";
if(v[i].ang1==90||v[i].ang2==90) cout<<"dreptunghic";
if(v[i].ang1<90&&v[i].ang2<90&&(180-(v[i].ang1+v[i].ang2)<90)) cout<<"ascutitunghic";
if(v[i].ang1>90||v[i].ang2>90||(180-(v[i].ang1+v[i].ang2)>90)) cout<<"obtuzunghic";
if(v[i].a!=v[i].b&&v[i].b!=v[i].c&&v[i].a!=v[i].c) cout<<"scalen";
cout<<", iar perimetrul este "<<v[i].a+v[i].b+v[i].c<<" si aria este "<<sqrt(((a+b+c)/2)*(((a+b+c)/2)-a)*(((a+b+c)/2)-b)*(((a+b+c)/2)-c))<<endl;
return 0;
}