Miscellany
public cpp v1 · immutable#include <iostream>#include <math.h>using namespace std;int main (){ int x, y, z; double a, b; a = pow(x,2) + pow(y,2); b = pow(z,2); cout << "Enter three triangle side lengths : "; cin >> x; cin >> y; cin >> z; if ( a == b ) 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;}