SOURCE FILE: triple_check.cpp



#include <iostream>
using namespace std ;

int main (void)
{
  int A, B, H ;

  cout << endl ;
  cout << "Enter three postitive integers from smallest to largest: " ;
  cin >> A >> B >> H ;

  cout << endl ;
  cout << "A*A + B*B is: " << A*A + B*B << endl ;
  cout << "      H*H is: " << H*H << endl ;
  cout << endl ;

  if   (A*A + B*B == H*H) 
       cout << "This IS a Pythagorean triple." ;
  else cout << "This IS NOT a Pythagorean triple." ;;

  cout << endl << endl ;

  return 0;
}