Question: Write a program to calculate the area of any triangle using the variable names base, height, and area. Keep in mind that the formula to
Write a program to calculate the area of any triangle using the variable names base, height, and area. Keep in mind that the formula to calculate the area of a triangle is 0.5 * ( base * height). Make sure that the result is printed to the screen.?
# Replace all instances of ??? with appropriate values or expressions
base = ??? height = ??? area = ??? puts area
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
