diff options
Diffstat (limited to 'sample/fact.rb')
-rw-r--r-- | sample/fact.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/fact.rb b/sample/fact.rb index d8147a40f1..9f6ca72ca7 100644 --- a/sample/fact.rb +++ b/sample/fact.rb @@ -4,6 +4,6 @@ def fact(n) n.downto(1) do |i| f *= i end - return f + f end -print fact(ARGV[0].to_i), "\n" +puts fact(ARGV[0].to_i) |