...

/

Challenge: Print the Angles of a Triangle

Challenge: Print the Angles of a Triangle

Write a program to print the angles of a triangle.

Problem statement

Given three sides a, b, and c of a triangle, write a program to obtain and print the values of three angles AA, BB, and CC rounded to the next integer. Use the following formula:

a2=b2+c2−2bc(cosA)a^2 =b^2 +c^2 -2bc(cosA) ...