The function is just like sub. But function returns a value. A function can accept single or multiple parameters.