- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Java Program to find all angles of a triangle
To find the angles of a triangle we can use sin/cosine rules according to cosine rule −
cos A = (b^2 + c^2 - a^2)/2bc
where A, B , C are the vertices and a, b, c are the sides of the given triangle then, angles of the triangle when the sides a, b, c given are −
angleAtA = acos((b^2 + c^2 - a^2)/(2bc)) angleAtB = acos((a^2 + c^2 - b^2)/(2ac)) angleAtC = acos((a^2 + b^2 - c^2)/(2ab))
- Related Articles
- The angles of a triangle are in A.P. The greatest angle is twice the least. Find all the angles of the triangle.
- The angles of a triangle are in \( \mathrm{AP} \). The greatest angle is twice the least. Find all the angles of the triangle.
- Java program to find the area of a triangle
- The angles of a triangle are in A.P. The greatest angle is twice the least. Find all the angles.
- One of the exterior angles of a triangle is 100°. The interior opposite angle is 75°. Find the measure of all the angles of the triangle?
- The exterior angles obtained on producing the base of a triangle both ways are $104^o$ and $136^o$. Find all the angles of the triangle.
- The measures of three angles of a triangle form an AP. If the greatest angle is twice the smallest angle, find all the angles of the triangle.
- Golang Program to Find the Area of a Triangle Given All Three Sides
- Java Program to Find all Roots of a Quadratic Equation
- Java Program To Find all the Subsets of a String
- Two angles of a triangle are equal and the third angle is greater than each of those angles by $30^o$. Determine all the angles of the triangle.
- JavaScript program to find perimeter of a triangle
- Program to find the angles of a quadrilateral in C++
- Java program to find all duplicate characters in a string
- Two angles of a triangle are in ration 4:5. If the sum of these angle is equal to the angle, find the angles of the triangle

Advertisements