I did not understand the question give me the code for this this will help me loot
Info
This question is closed. Reopen it to edit or answer.
Show older comments
write a function called tri_area that return the area of triangle with base b and height h, where b and h are the input argument function in that order.
1 Comment
KSSV
on 26 Jun 2020
What have you attempted for this very simple Home Work?
Answers (1)
Vishal Gaur
on 26 Jun 2020
Hi, Amit Nath, yopu can check try this code:
function area=tri_area(b,h)
area = (b*h)/2;
end
If you face any error check this comment
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!