Question: :RUBY: (Factorials) Factorials are used frequently in probability problems. The factorial of a positive integer n is equal to the product of the positive integers
:RUBY: (Factorials) Factorials are used frequently in probability problems. The factorial of a positive integer n is equal to the product of the positive integers from 1 to n. Write an application that calculates the factorials of 1 through 20. Display the results in tabular format. The program should only quit once the user types in "quit"
This question has been asked many times but only answered in Java. Please provide a solution in Ruby. Thank you.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
