## Write the following functions:

1- A function which calculates the surface of a square or rectangle; The function should be something like that:

function surface(x as single, y as single) as Double etc...

2- A function which calculates the surface of a circle; The function should take the diameter of the circle:

function c_surface(d as single) as Double.

3- A function which calculates the volume of a cylinder; Take advantage of the circle surface function; The function should look like:

function cyl_volume(h as single) as Double.

Expect more everyday ...

function surface(x as single, y as single) as Double etc...

2- A function which calculates the surface of a circle; The function should take the diameter of the circle:

function c_surface(d as single) as Double.

3- A function which calculates the volume of a cylinder; Take advantage of the circle surface function; The function should look like:

function cyl_volume(h as single) as Double.

Expect more everyday ...