Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Area of a Triangle - 1 Rich Park January 20, 1019
- # Formula - Area = (Base * Height)
- def TriArea1 (): #Code
- base = float(input("Enter the value for the Base -> "))
- height = float(input("Enter the value for the Height -> "))
- area = (base * height)/2
- print ('Triangle area is: ', area)
- TriArea1() #Function call
- ########### OUTPUT ####################
- # Enter the value for the Base -> 18 #
- # Enter the value for the Height -> 6 #
- # Triangle area is: 54.0 #
- #######################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement