Advertisement
Vesna_To

trokut

Aug 25th, 2019
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def triangle():
  2. v = int(input("Enter the height of the triangle: "))
  3. a = int(input("Enter the length of the base: "))
  4. P = (a * v) / 2
  5. print ("The area of ​​a given triangle is: ", P)
  6.  
  7. triangle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement