WE CAN CODE IT Why computer literacy is key to winning the 21st century.
Factorial of a number in Ruby
Get link
Facebook
X
Pinterest
Email
Other Apps
A.Factorialsare very simple things. They're just products, indicated by an exclamation mark. For instance, "fourfactorial" is written as "4!" and means 1×2×3×4 = 24. In general, n! ("nfactorial") means the product of all the whole numbers from 1 to n; that is, n! = 1×2×3×...×n.
Comments
Post a Comment