Angle subtended by the chord when the angle subtended by another chord of same length is given
Last Updated :
30 May, 2022
Given a circle having two chords of equal length. The angle subtended by one of the chords to the centre is given. The task here is to find the measure of the angle subtended by another chord at the centre.
Examples:
Input: 48
Output: 48 degrees
Input: 82
Output: 82 degrees
Approach:
Let AC & BD are the two equal chords of the circle having center at O.let the angle subtended by the chord AC be x degrees.
now,
in triangle AOC & BOD,
AO = OB(radii of same circle)
AB = CD(equal chords)
OC = OD(radii of same circle)
so, the triangles AOC & BOD are congruent to each other
so, angle AOC = angle BOD
Equal chords of a circle subtend equal angles at the centre.
Below is the implementation of the above approach:
C++
#include <bits/stdc++.h>
using namespace std;
void angleequichord( int z)
{
cout << "The angle subtended at the center is "
<< z << " degrees" << endl;
}
int main()
{
int z = 48;
angleequichord(z);
return 0;
}
|
Java
import java.io.*;
class GFG
{
static void angleequichord( int z)
{
System.out.println ( "The angle subtended at the center is " +
z + " degrees" );
}
public static void main (String[] args)
{
int z = 48 ;
angleequichord(z);
}
}
|
Python3
def angleequichord(z) :
print ( "The angle subtended at" ,
"the center is" , z , "degrees" );
if __name__ = = "__main__" :
z = 48 ;
angleequichord(z);
|
C#
using System;
class GFG
{
static void angleequichord( int z)
{
Console.WriteLine( "The angle subtended at the center is " +
z + " degrees" );
}
public static void Main (String[] args)
{
int z = 48;
angleequichord(z);
}
}
|
Javascript
<script>
function angleequichord(z)
{
document.write( "The angle subtended at the center is "
+ z + " degrees" + "<br>" );
}
let z = 48;
angleequichord(z);
</script>
|
Output:
The angle subtended at the center is 48 degrees
Time Complexity: O(1)
Auxiliary Space: O(1)
Share your thoughts in the comments
Please Login to comment...