for loop example 1 from Module 4
Write a function with the header F = myfactorial(N) that will calculate the factorial of the number N
The factorial of an integer N, denoted by N!, is the product of all positive integers less than or equal to N.