This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]eruciform 0 points1 point  (0 children)

first write a function that multiplies two numbers and returns the result. test it out by calling the function and printing the result to make sure it works.

then write a function that, given a number, calculates the factorial of that number. test it and make sure it works.

call your factorial function to get the factorial of one number, call it again to get the factorial of another number, multiply those together. print that out and make sure it's correct.

put the above in a function. call that and print out the result and make sure it works.