Challenge: Print the Angles of a Triangle
Write a program to print the angles of a triangle.
We'll cover the following
Problem statement
Given three sides a
, b
, and c
of a triangle, write a program to obtain and print the values of three angles , , and rounded to the next integer.
Use the following formula:
- Input: The three sides,
a
,b
, andc
of a triangle will be given as inputs. - Output: Print the values of the three angles on the console.
Get hands-on with 1400+ tech skills courses.