Check Validity of Triangle C Program

By | May 15, 2016

C Program To Check Validity of Triangle

Learn How To Check Validity of Triangle in C Programming Language. This is a simple C code that takes in the measures of all the Sides of the Triangle and then checks if a triangle is valid or not using If – Else Block Structure.

As we all know, there are many types of Triangles. Some of them can be of the following types:

  • Right Angled Triangle
  • Obtuse Triangle
  • Acute Triangle

To Find if the Triangle is Valid or not, the Triangle Validity Test includes verifying the following conditions:

  • First Side + Second Side > Third Side
  • Second Side + Third Side > First Side
  • Third Side + First Side > Second Side

A Triangle can be a valid triangle only if the measure of one of the three sides of the triangle is greater than the other two sides.

Also Read: C Program Code To Develop Simple Calculator Application

 

C Program To Check if the Triangle is Valid or Not

Output

Check Validity of Triangle in C Programming Language

Also Read: Code To Print Map of India in C Programming

 

If you have any doubts or compilation errors in this Code To Check Validity of Triangle in C Programming, you can write about it in the Comment Section below.

Let's Discuss