Original Message (ID '147841') By Forum Moderator:
I let this through on the chance that it isn't homework.
The way you wrote the function suggests you need to start with basic Mathematica syntax tutorials.
http://reference.wolfram.com/mathematica/tutorial/GettingUsedToMathematica.html
http://reference.wolfram.com/mathematica/tutorial/GettingStartedOverview.html
(note the "Defining Functions" link)