Home /
Expert Answers /
Computer Science /
change-the-code-so-that-areatriangle-takes-parameters-for-the-base-and-height-of-a-triangle-and-com-pa569
(Solved): Change the code so that areaTriangle takes parameters for the base and height of a triangle and com ...
Change the code so that areaTriangle takes parameters for the base and height of a triangle and computes its area. Then, write code to call the function and print the result. For example, areaTriangle (12,45) should return 270. Original -1 of 1 1 def 23456? areaTriangle (): base =5 height =4 return (5?4)/2? 1 def areaTriangle(): base =5 height =4 return (5?4)/2