I have integers a, b and c.
Valid right angle means all the sides are positive integers, and they make a valid right angle triangle.
I'll then have to output the result (easy).
Full disclaimer: This is the course and assignment that I'm trying to finish
My attempt (Java):
// int a, b, c = 3, 4, 5;
// how do I even start checking if I'm not allowed to use "if / else"
// therefore not shown in code
int aSquare = a * a;
int bSquare = b * b;
int cSquare = c * c;
// *Im hoping they dont flag this as a conditional
System.out.println(
(aSquare == (bSquare + cSquare) || bSquare == (cSquare + aSquare)
|| cSquare == (aSquare + bSquare))
);