All pastes #396911 Raw Edit

Miscellany

public cpp v1 · immutable
·published 2007-03-16 02:45 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 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;}