Triangle Valid or Not based On Sides: C Program
Satish B
http://technotip.com/6622/triangle-valid-or-not-based-on-sides-c-program/
If the three sides of a Triangle are entered through the keyboard, write a program to check whether the Triangle is valid or not. The Triangle is valid if the sum of two sides is greater than the largest of the three sides.
Logic To Find Valid Triangle or Not First we find out biggest side in the 3 sides of the triangle. Next we add the other 2 sides. Now the addition of the other 2 sides must be greater than the biggest side of the Triangle, for a Triangle to be valid. If not, its not a Triangle.
C Programming Interview / Viva Q&A List http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=XMJdWL_FDck
5771710 Bytes