Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("We will calculate the area of a triangle")
- base = input("How long is the base in cm?> ")
- base=float(base)
- height = input("What is the height in cm?> ")
- height = float(height)
- area = 0.5*(base*height)
- print("The base is " + str(base)+ " and the height is " + str(height) + ", so the area is " + str(area))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement