Functions with parameters and a return value

Listing 5 illustrates a program that receives a single incoming parameter by value and returns a value.

(This structure is similar to the sqrt function discussed earlier.)