Functions and Looping
Create a Function
Create a function named square. It should define a single parameter named number.
In the body of the function return the square of the value passed in.
That's a good start. Try making an attempt at the body.
return number * number
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.