Functions in 'C'

Verified a Triangle today!

Yes... I wrote a short program to verify that a triangle is possible given the lengths of the three sides.

This was an exercise to use functions to abstract some of the logic away from the main(); function and build a better program. The functionality could have all been done in the main(); function, but that defeats the purpose. I'm learning a lot about programming and engineering software to be more usable and more importantly... reusable!

( profile and follow along with the commits.

I'm sure there are better ways to handle this problem, so please feel free to comment below or send me an email with your solutions. I'll be sure to post them here and we can compare notes. If you see something I've messed up, please let me know as well. I'm really trying to get better using 'C' as well as learn better programming techniques.

Have a great day everyone!


comments powered by Disqus

Subscribe to my mailing. It's just fun stuff.

* indicates required