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
India Languages,
2 months ago
Chemistry,
2 months ago
History,
5 months ago
Social Sciences,
5 months ago
Physics,
11 months ago
Geography,
11 months ago