pythagorean theorem and its converse calculator code example Example: pythagoras calculator a^2 + b^2 = c^2