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:
GeeksforGeeks has prepared a complete interview preparation course with premium videos, theory, practice problems, TA support and many more features. Please refer Placement 100 for details
- Check whether the triangle is valid or not if angles are given
- Program to find the angles of a quadrilateral
- Check if a triangle of positive area is possible with the given angles
- Check if the given Prufer sequence is valid or not
- Check whether triangle is valid or not if three points are given
- Program to check if a date is valid or not
- Check whether the given string is a valid identifier
- Check whether triangle is valid or not if sides are given
- Check if the given Binary Expressions are valid
- Check if the number is valid when flipped upside down
- Check whether right angled triangle is valid or not for large sides
- Maximum area of quadrilateral
- Find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given
- Find all angles of a given triangle
- Find all angles of a triangle in 3D
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.