Thanks :)

C:\code>
C:\code>
C:\code>
C:\code>
C:\code>
C:\code>
C:\code>dir
 Volume in drive C has no label.
 Volume Serial Number is 0491-510F

 Directory of C:\code

11/03/2007  11:34 AM    <DIR>          .
11/03/2007  11:34 AM    <DIR>          ..
11/03/2007  11:35 AM               122 doFactorial.rb
11/03/2007  11:34 AM               114 factorial.rb
11/03/2007  11:32 AM               353 Hello.rb
11/03/2007  11:26 AM               319 Hello.txt
               4 File(s)            908 bytes
               2 Dir(s)  28,968,902,656 bytes free

C:\code>type doFactorial.rb
require 'factorial'

x=20

print "\n\n\nThe factorial of "
print x
print " is "
print  fact(x)
print "\n\n\n\n"

C:\code>
C:\code>type factorial.rb
def fact(n)
        if n <= 1
                1
        else
                n * fact(n - 1)
        end
end
C:\code>
C:\code>doFactorial.rb



The factorial of 20 is 2432902008176640000




C:\code>
C:\code>


Also, when I got home I read poignant ruby and found it :)



-Thufir