In creating a function, what must I do?

Do I need to write

Public Function MYFACTORIAL(number as integer, otherone as integer, lastone as integer)

number = otherone * lastone

end function

Or what? Someone show me the correct syntax for a public function. Thank you, goodbye.

------------------
"I'm carrying a Geometry book, but I'm not in Geometry...it's crazy...crazy man!"