A script that works on the mathematical rule that a + b + c = 180, where a, b and c are the three angles in a triangle.