All pastes #396904 Raw Edit

Anonymous

public cpp v1 · immutable
·published 2007-03-16 02:35 UTC
rendered paste body
#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 angles : ";    cin  >> x;    cin  >> y;    cin  >> z;    if ( x != y && x != z )        cout << "This is a scalene triangle.\n";    else if( a == b )         cout << "This is a right triangle.\n";    else        cout << "This is a isosceles triangle.\n";    return 0;}