Question: 2 . 1 3 . 2 : Numeric types: Floating - point. The area of a triangle is given by triangle _ area = 1

2.13.2: Numeric types: Floating-point. The area of a triangle is given by triangle_area=1.0/2.0*traingle_base*traingle_height. Read triangle_base and triangle_height from input as floats, respectively. Then, compute triangle_area using the formula. Finally, output 'Triangle area is ' followed by the value of triangle_area to three digits after the decimal point.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!