Aside from the fact that its not a game there's one mathematical error. You allow the player to define three sides and a height and a height for "triangles". When you give three sides for a triangle there is only one triangle and the height is predifined (bsinA). Also you allow for triangles that cannot exist such as a=3 b=3 c=42. This triangle cannot be made, so everything would be undefined. Other than that good job.
This is the game that never ends
It just goes on and on my friends
Some people started playin' it not knowin' what it was
And now they'll keep on playin' it forever just because
3/5
You need to make there be a point to the game. It is too easy to win and impossible to lose. There is no satisfaction in winning if it is not also possible to not win. After you fix that you could add levels and sound. This could get good, but it would need a lot of work.