#include <iostream>#include <math.h>using namespace std;int main (){ int x = 0, y = 0, z = 0; double a, aa, c, cc, d, dd; cout << "Enter three triangle side lengths : "; cin >> x; cin >> y; cin >> z; a = pow(x,2) + pow(y,2); aa = pow(z,2); c = pow(x,2) + pow(z,2); cc = pow(y,2); d = pow(y,2) + pow(z,2); dd = pow(x,2); if ( x != 0 && y != 0 && z != 0 ) { if ( z == x + y || x == z + y || y == z + x ) { if ( a == aa || b == bb || c == cc || d == dd ) cout << "This is a right triangle.\n"; else if( x != y && x != z ) cout << "This is a scalene triangle.\n"; else cout << "This is a isosceles triangle.\n"; } } return 0;}