Question: Write the definition of a function named areaTriangle() as follows: Parameters: Two doubles storing the base and height of a triangle.. Return value: A double
Write the definition of a function named areaTriangle() as follows: Parameters: Two doubles storing the base and height of a triangle.. Return value: A double storing the area. The function returns the area of the rectangle given the dimensions passed by the parameters. Improve efficiency: No need to create a variable to store th
e area.
- Parameters: Two doubles storing the base and height of a triangle.. - Return value: A double storing the area. - The function returns the area of the rectangle given the dimensions passed by the parameters. Improve efficiency: No need to create a variable to store the area. Functions.cpp 12345678#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
