move kitchen-sink demo into a separate directory
This commit is contained in:
parent
760074ee41
commit
606963f424
39 changed files with 47 additions and 49 deletions
|
|
@ -1,12 +0,0 @@
|
|||
#!/usr/bin/ruby
|
||||
|
||||
# Program to find the factorial of a number
|
||||
def fact(n)
|
||||
if n == 0
|
||||
1
|
||||
else
|
||||
n * fact(n-1)
|
||||
end
|
||||
end
|
||||
|
||||
puts fact(ARGV[0].to_i)
|
||||
Loading…
Add table
Add a link
Reference in a new issue