Urrrgh! PM bites again, losing the long reply I typed. Instead of "Preview" it took me to Dragonchild's node, and hitting the Back button just went to the same place ad infinitum. I wish they'd fix that already... I've taken to copying the text to the clipboard before submitting, just in case. Wish I'd done it this time (sigh)
So, DC mentioned reducing the redundancy in your code, so I won't retype it.
But, I do want to encourage you and give you some food for thought: When I wrote this same thing in high school, I incorporated the law of sines, law of cosines, and the fact that the sum of the angles is 180 into a single unified program. It would prompt you for 3 sides and angles. Enter what you know, or ? to solve for that, or blank for don't know/don't care. Then it tells you what you wanted to know.
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link
or How to display code and escape characters
are good places to start.