Write a Python program that accepts the base and height of the triangle as inputs and compute the area.
171Program:
base = int(input("Input the value of the base :")) #Enter the base of the triangle height = int(input("Input the value of the height :")) #Enter the height of the triangle area = base*height/2 # Formula for computing the area print("The area of the triangle is =", area) #Display the area of the triangle
Output:
Input the value of the base :12 Input the value of the height :15 The area of the triangle is = 90.0
Explanation:
no
This Particular section is dedicated to Programs only. If you want learn more about Python. Then you can visit below links to get more depth on this subject.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS