Question: In this assignment, you will write a Python program that calculates the area of a triangle using an if - else statement and the following

In this assignment, you will write a Python program that calculates the area of a triangle using an if-else statement and the following formula:
Area =1/2\times base \times height
Your program should:
Prompt the user to enter the base and height of the triangle as input
Then it should calculate and display the area.
When you run this program, input the base and height when prompted, and it will calculate and display the area of the triangle.

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!