do the hand tracing with any value to find the area
Accept the two sides and an angle included by these two sides, and find the area and third side of a triangle.
(1) Display "Enter two sides and an angle:"
(2) Accept a, b,theta
(3) ang = theta * 3.14 / 180;
(4) third_side = sqrt (a*a + b*b - 2*a*b* cos(ang))
(5) area = ½*a*b* sin(ang)
(6) Display "Third_side =",third_side,"Area =", area
(7) Exit
The answer to your question is provided in the image:
Comments
Leave a comment