Raheem is writing a computer program that will take in the base and height of a triangle as inputs from the user and outputs the area using the formula: area $=0.5$ (base $x$ height).
Using AQA Pseudo-code, complete the program:
Raheem decides to rewrite the calculation as a subroutine called areaTriangle (), that takes the base and height as parameters and returns the area.
Rewrite the program above as a subroutine, using either AQA Pseudo-code or a high-level programming language you have studied.