Write a function named area to calculate and print the area of right triangle, which receive height and base from the caller and return nothing.
Answers
Answered by
1
Answer:
function [area] = tri_area([b,h]);
tri_area([b,h])=(0.5)*(b)*(h)
area=tri_area([b,h])
end
Similar questions