Exterior angle of a cyclic quadrilateral when the opposite interior angle is given - GeeksforGeeks

22 Mar, 2021
Given cyclic quadrilateral inside a circle, the task is to find the exterior angle of the cyclic quadrilateral when the opposite interior angle is given.Examples:  
Input: 48 
Output: 48 degrees

Input: 83
Output: 83 degrees
 
Approach:  
Let, the exterior angle, angle CDE = x
and, it’s opposite interior angle is angle ABC
as, ADE is a straight line
so, angle ADC = (180-x) degrees
since, opposite angles of a cyclic quadrilateral are supplementary,
angle ABC = x
Below is the implementation of the above approach: 
C++
Java
Python3
C#
Javascript
// 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 codeint main(){    int z = 48;    angleextcycquad(z);    return 0;}
// 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 codepublic static void main (String[] args){        int z = 48;    angleextcycquad(z);}} // This code is contributed by anuj_67..
# 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 codez = 48;angleextcycquad(z); # This code is contributed by 29AjayKumar
// C# program to find the exterior angle// of a cyclic quadrilateral when// the opposite interior angle is givenusing System; class GFG{ static void angleextcycquad(int z){    Console.WriteLine( "The exterior angle of the"        + " cyclic quadrilateral is "        + z +" degrees");} // Driver codepublic static void Main (){        int z = 48;    angleextcycquad(z);}} // This code is contributed by anuj_67..
<script>// javascript program to find the exterior angle// of a cyclic quadrilateral when// the opposite interior angle is givenfunction angleextcycquad(z){    document.write( "The exterior angle of the"        + " cyclic quadrilateral is "        + z +" degrees");} // Driver codevar z = 48;angleextcycquad(z); // This code is contributed by Princi Singh</script>
The exterior angle of the cyclic quadrilateral is 48 degrees
 
vt_m
29AjayKumar
princi singh
Geometric
Mathematical
Mathematical
Geometric
Writing code in comment?
Please use ide.geeksforgeeks.org,
generate link and share the link here.
Program for distance between two points on earth
Convex Hull | Set 1 (Jarvis's Algorithm or Wrapping)
Convex Hull | Set 2 (Graham Scan)
Given n line segments, find if any two segments intersect
Line Clipping | Set 1 (Cohen–Sutherland Algorithm)
Program for Fibonacci numbers
Write a program to print all permutations of a given string
C++ Data Types
Set in C++ Standard Template Library (STL)
Coin Change | DP-7