Computer Science, asked by anuradha6060, 2 months ago

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 shivamsingh823405
1

Answer:

function [area] = tri_area([b,h]);

tri_area([b,h])=(0.5)*(b)*(h)

area=tri_area([b,h])

end

Similar questions