Thufir Hawat
11/3/2007 4:04:00 AM
Thank you :)
In the interim, I got better results:
C:\Documents and Settings\nsaunders\Desktop>
C:\Documents and Settings\nsaunders\Desktop>
C:\Documents and Settings\nsaunders\Desktop>
C:\Documents and Settings\nsaunders\Desktop>
C:\Documents and Settings\nsaunders\Desktop>type HelloWorld.rb
#5.times { print "Odelay!" }
n=5
def fact(n)
if n <= 1
1
else
n * fact(n - 1)
end
end
print fact(20)
def hello(i, aString)
i.times {print "\n" + aString + "\n"}
end
hello(6, "success")
C:\Documents and Settings\nsaunders\Desktop>
C:\Documents and Settings\nsaunders\Desktop>HelloWorld.rb
2432902008176640000
success
success
success
success
success
success
C:\Documents and Settings\nsaunders\Desktop>
C:\Documents and Settings\nsaunders\Desktop>
Once I took the plunge, it's quick progress so far! I can change a
line, then just run it. I haven't gotten used to the idea of the irb,
for now just going back and forth between the DOS prompt and notepad
works smoothly.
-Thufir