Răspuns:
if(power(a,2)+power(b,2)==power(c,2) || power(c,2)+power(a,2)==power(b,2) || power(c,2)+power(b,2)==power(a,2))
cout<<"Triunghiul este dreptunghic";
else
cout<<"Triunghiul nu e dreptunghic";
Explicație:
Pentru ca un triunghi sa fie dreptunghic, trebuie sa indeplineasca teorema lui pitagora, astfel, daca suma a doua laturi la patrat este a treia latura la patrat, triunghiul este dreptunghic