Write a Python program to find the area of a triangle.

Write a Python program to find the area of a triangle.

Program
def myfun():
    base=float(input("Enter the length of the base of the triangle: "))       
    height=float(input("Enter the height of the triangle: "))
    area =0.5*base*height
    print(area)
if __name__=="__main__":
    myfun()


Output:

Enter the length of the base of the triangle: 10
Enter the height of the triangle: 15
75.0



More Questions


59 . Write a python program to calculate average using python *args ?
60 . Write a Python program to find the area of a triangle.
61 . Write a Python program to convert kilometers to miles.
62 . Write a Python program to convert Celsius to Fahrenheit.
63 . Write a Python Program to Check if a Number is Positive, Negative or Zero.
64 . Write a Python Program to Check if a Number is Odd or Even.
65 . Write a Python Program to Check Leap Year.
66 . Write a Python Program to Check Prime Number.
67 . Write a Python Program to Print all Prime Numbers in an Interval of 1-10.
68 . Write a Python Program to Find the Factorial of a Number.
69 . Write a Python Program to Display the multiplication Table.



For latest job updates join Telegram Channel: https://t.me/sateeshm