Given four integers A, B, C and D which represents the four angles of a Quadrilateral in degrees. The task is to check whether the given quadrilateral is valid or not.
Input: A = 80, B = 70, C = 100, D=110
Input: A = 70, B = 80, C = 130, D=60
A Quadrilateral is valid if the sum of the four angles is equal to 360 degrees.
Below is the implementation of the above approach:
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Check whether the triangle is valid or not if angles are given
- Program to find the angles of a quadrilateral
- Check whether triangle is valid or not if sides are given
- Check whether triangle is valid or not if three points are given
- Check whether right angled triangle is valid or not for large sides
- Check whether the given string is a valid identifier
- Check if a triangle of positive area is possible with the given angles
- Check if an N-sided Polygon is possible from N given angles
- Exterior angle of a cyclic quadrilateral when the opposite interior angle is given
- Find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given
- Check if the given Prufer sequence is valid or not
- Maximum area of quadrilateral
- Number of quadrilateral formed with N distinct points on circumference of Circle
- Length of Diagonals of a Cyclic Quadrilateral using the length of Sides.
- Circumradius of a Cyclic Quadrilateral using the length of Sides
- Program to check if a date is valid or not
- Check whether all the rotations of a given number is greater than or equal to the given number or not
- Find all angles of a given triangle
- Count of obtuse angles in a circle with 'k' equidistant points between 2 given points
- Program to find smallest difference of angles of two parts of a given circle
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.