Grade 12 Project, program that solves a triangle