Pythagorean Theorem Find C Algorithm