Given are two congruent circles with two equal chords. The angle subtended to the center from the chord of one of the circles is given. The task is to find the angle subtended by the chord to the center of another circle.
Examples:
Input: z = 48
Output: 48 degrees
Input: z = 93
Output: 93 degrees

Approach:
AO = PX(radii of congruent circles)
BO = QX(radii of congruent circles)
AB = PQ(equal chords)
-
- So, triangle AOB is congruent with triangle PXQ
- So, angle AOB = angle PXQ
Equal chords of congruent circles subtend equal angles at their centers.
Below is the implementation of the above approach:
C++
#include <bits/stdc++.h>
using namespace std;
void anglequichord( int z)
{
cout << "The angle is " << z
<< " degrees" << endl;
}
int main()
{
int z = 48;
anglequichord(z);
return 0;
}
|
Java
import java.io.*;
class GFG
{
static void anglequichord( int z)
{
System.out.println ( "The angle is " + z + " degrees" );
}
public static void main (String[] args)
{
int z = 48 ;
anglequichord(z);
}
}
|
Python 3
def anglequichord(z):
print ( "The angle is " , z
, " degrees" )
if __name__ = = "__main__" :
z = 48
anglequichord(z)
|
C#
using System;
class GFG
{
static void anglequichord( int z)
{
Console.WriteLine( "The angle is " + z + " degrees" );
}
public static void Main ()
{
int z = 48;
anglequichord(z);
}
}
|
Javascript
<script>
function anglequichord(z)
{
document.write( "The angle is " + z + " degrees" );
}
var z = 48;
anglequichord(z);
</script>
|
Output:
The angle 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!
Last Updated :
30 May, 2022
Like Article
Save Article