Patrick B. answered 06/25/19
Math and computer tutor/teacher
The measures of the sides can be decimal numbers and fractions. You must use double or float.
Overflow then is not an issue.
I used macros instead of one line function...
If you shall do C++, you can make them inline functions.
=================================================================
#include <stdio.h>
#define Pythagorean(x,y,z) ( ((x)*(x))+ ((y)*(y)) == ((z)*(z)) )
#define IsRightTriangle(x,y,z) ( Pythagorean(x,y,z) || Pythagorean(x,z,y) || Pythagorean(y,z,x))
int main()
{
printf(" 3 4 5 : %d \n", IsRightTriangle(3,4,5)) ; //yes
printf(" 5 13 12 : %d \n ", IsRightTriangle(5,13,12)); //yes
printf(" 25 7 24 : %d \n",IsRightTriangle(25,7,24)); //yes
printf(" 1 4 5 : %d \n",IsRightTriangle(1,4,5)); //no
}