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++
#include <bits/stdc++.h>
using namespace std;
void angleextcycquad( int z)
{
cout << "The exterior angle of the"
<< " cyclic quadrilateral is "
<< z << " degrees" << endl;
}
int main()
{
int z = 48;
angleextcycquad(z);
return 0;
}
|
Java
import java.io.*;
class GFG
{
static void angleextcycquad( int z)
{
System.out.print( "The exterior angle of the"
+ " cyclic quadrilateral is "
+ z + " degrees" );
}
public static void main (String[] args)
{
int z = 48 ;
angleextcycquad(z);
}
}
|
Python3
def angleextcycquad(z):
print ( "The exterior angle of the" ,end = "");
print ( "cyclic quadrilateral is " ,end = "");
print (z, " degrees" );
z = 48 ;
angleextcycquad(z);
|
C#
using System;
class GFG
{
static void angleextcycquad( int z)
{
Console.WriteLine( "The exterior angle of the"
+ " cyclic quadrilateral is "
+ z + " degrees" );
}
public static void Main ()
{
int z = 48;
angleextcycquad(z);
}
}
|
Javascript
<script>
function angleextcycquad(z)
{
document.write( "The exterior angle of the"
+ " cyclic quadrilateral is "
+ z + " degrees" );
}
var z = 48;
angleextcycquad(z);
</script>
|
Output:
The exterior angle of the cyclic quadrilateral is 48 degrees
Time Complexity: O(1)
Auxiliary Space: O(1)
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!