The program to identify a quadrilateral read inputs – length of sides and angles made by the quadrilateral shape and prints the shape name as output.
We compiled the program using Dev-C++ compiler installed on a windows 7 64-bit system. You may try another standard C compiler, but make sure to modify the code according to your compiler specifications.
You must be aware of following C programming concept to understand this example program.
Before you practice this program, you must go through the concepts of quadrilateral shapes and their differences. See the problem definition section.
A quadrilateral is a polygon shape that has 4 sides and corners that make 4 angles. The sum of those angles must be equal to 360 degrees. There are many types of quadrilateral shapes, you will find a brief description of each shape below.
A square has 4 equal sides and 4 right angles at each corner.