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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!