a 2 b 2 c 2 calculator pythagorem theorem code example Example: pythagoras calculator a^2 + b^2 = c^2