给定的是具有两个相等和弦的两个全等圆。给出了从其中一个圆的弦对着中心的角度。任务是找到弦对另一个圆的中心的角度。
例子:
Input: z = 48
Output: 48 degrees
Input: z = 93
Output: 93 degrees
方法:
- 在三角形AOB和PXQ
AO = PX(radii of congruent circles)
BO = QX(radii of congruent circles)
AB = PQ(equal chords)
- 所以三角形AOB与三角形PXQ全等
- 所以,角AOB = 角PXQ
Equal chords of congruent circles subtend equal angles at their centres.
下面是上述方法的实现:
C++
// C++ program to find the angle subtended by the chord
// to the centre of the circle when the angle subtended
// by another equal chord of a congruent circle is given
#include
using namespace std;
void anglequichord(int z)
{
cout << "The angle is " << z
<< " degrees" << endl;
}
// Driver code
int main()
{
int z = 48;
anglequichord(z);
return 0;
}
Java
// Java program to find the angle subtended by the chord
// to the centre of the circle when the angle subtended
// by another equal chord of a congruent circle is given
import java.io.*;
class GFG
{
static void anglequichord(int z)
{
System.out.println ("The angle is " + z + " degrees");
}
// Driver code
public static void main (String[] args)
{
int z = 48;
anglequichord(z);
}
}
Python 3
# Python 3 program to find the angle subtended by the chord
# to the centre of the circle when the angle subtended
# by another equal chord of a congruent circle is given
def anglequichord(z):
print ("The angle is " , z
, " degrees")
# Driver code
if __name__ == "__main__":
z = 48
anglequichord(z)
# This code is contributed by ChitraNayal
C#
// C# program to find the angle subtended by the chord
// to the centre of the circle when the angle subtended
// by another equal chord of a congruent circle is given
using System;
class GFG
{
static void anglequichord(int z)
{
Console.WriteLine("The angle is " + z + " degrees");
}
// Driver code
public static void Main ()
{
int z = 48;
anglequichord(z);
}
}
// This code is contributed by AnkitRai01
Javascript
输出:
The angle is 48 degrees
如果您希望与专家一起参加现场课程,请参阅DSA 现场工作专业课程和学生竞争性编程现场课程。