Dado un cuadrilátero cíclico dentro de un círculo, la tarea es encontrar el ángulo exterior del cuadrilátero cíclico cuando se da el ángulo interior opuesto.
Ejemplos:
Input: 48 Output: 48 degrees Input: 83 Output: 83 degrees
Enfoque :
- Sea, el ángulo exterior, ángulo CDE = x
- y su ángulo interior opuesto es el ángulo ABC
- como, ADE es una línea recta
- entonces, ángulo ADC = (180-x) grados
- ya que, los ángulos opuestos de un cuadrilátero cíclico son suplementarios,
- ángulo ABC = x
Below is the implementation of the above approach:
C++
// C++ program to find the exterior angle // of a cyclic quadrilateral when // the opposite interior angle is given #include <bits/stdc++.h> using namespace std; void angleextcycquad(int z) { cout << "The exterior angle of the" << " cyclic quadrilateral is " << z << " degrees" << endl; } // Driver code int main() { int z = 48; angleextcycquad(z); return 0; }
Java
// Java program to find the exterior angle // of a cyclic quadrilateral when // the opposite interior angle is given import java.io.*; class GFG { static void angleextcycquad(int z) { System.out.print( "The exterior angle of the" + " cyclic quadrilateral is " + z +" degrees"); } // Driver code public static void main (String[] args) { int z = 48; angleextcycquad(z); } } // This code is contributed by anuj_67..
Python3
# Python program to find the exterior angle # of a cyclic quadrilateral when # the opposite interior angle is given def angleextcycquad(z): print("The exterior angle of the",end=""); print("cyclic quadrilateral is ",end=""); print(z," degrees"); # Driver code z = 48; angleextcycquad(z); # This code is contributed by 29AjayKumar
C#
// C# program to find the exterior angle // of a cyclic quadrilateral when // the opposite interior angle is given using System; class GFG { static void angleextcycquad(int z) { Console.WriteLine( "The exterior angle of the" + " cyclic quadrilateral is " + z +" degrees"); } // Driver code public static void Main () { int z = 48; angleextcycquad(z); } } // This code is contributed by anuj_67..
Javascript
<script> // javascript program to find the exterior angle // of a cyclic quadrilateral when // the opposite interior angle is given function angleextcycquad(z) { document.write( "The exterior angle of the" + " cyclic quadrilateral is " + z +" degrees"); } // Driver code var z = 48; angleextcycquad(z); // This code is contributed by Princi Singh </script>
Producción:
The exterior angle of the cyclic quadrilateral is 48 degrees
Complejidad de tiempo: O(1)
Espacio Auxiliar: O(1)
Publicación traducida automáticamente
Artículo escrito por IshwarGupta y traducido por Barcelona Geeks. The original can be accessed here. Licence: CCBY-SA