Question: In your program, you should: Triangle.java - - Write code to compute the area of a triangle, whose side lengths are 5 . 0 ,
In your program, you should:
Triangle.java
Write code to compute the area of a triangle, whose side lengths are and centimeters. You will need double variables for side a side b side and the triangle's area.
lengths sides
Starting with this formula:
Triangle area
Use println statements to announce the values of the sides and resulting triangle area in place of the blank skipping a line afterward. Use string concatenation with the variables.
Side is centimeters.
Side is centimeters.
Side is centimeters.
The triangle is square centimeters.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
