Write the definition of a function square, which receives an integer parameter and returns the square of the value of the parameter.

Write the definition of a function square, which receives an integer parameter and returns the square of the value of the parameter.

LANGUAGE: C++

CHALLENGE:

Write the definition of a function square, which receives an integer parameter and returns the square of the value of the parameter.

So if the parameter ‘s value is 7, the function returns the value 49. If the parameter ‘s value happens to be 25, the functions returns the value 625. If the value of the parameter is 0, the function returns 0.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level