# Hello world

**URL:** <https://www.ruby-forum.com/t/hello-world/119104>\
**Category:** Ruby\
**Created:** [November 3, 2007, 4:51am UTC](https://www.ruby-forum.com/t/hello-world/119104 "2007-11-03T04:51:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thufir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Post date:** [November 3, 2007, 4:51am UTC](https://www.ruby-forum.com/t/hello-world/119104/1 "2007-11-03T04:51:37Z")

</div>

> From Windows:

C:\Documents and Settings\nsaunders\Desktop\>  
C:\Documents and Settings\nsaunders\Desktop\>type HelloWorld.rb  
#5.times { print “Odelay!” }

def fact(n)  
if n \<= 1  
1  
else  
n \* fact(n - 1)  
end

```
    print n

```

end

C:\Documents and Settings\nsaunders\Desktop\>  
C:\Documents and Settings\nsaunders\Desktop\>HelloWorld.rb

C:\Documents and Settings\nsaunders\Desktop\>

I can uncomment the first line and get Odelay, but how do I get the  
factorial? I’ll probably get some interesting results shortly, just  
thought I’d throw this out there if not 🙂

-Thufir
