1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Simplify a sample code (#2374)

This commit is contained in:
Kenichi Kamiya 2019-08-17 14:56:57 +09:00 committed by Takashi Kokubun
parent dce1e14e80
commit 72adc6cffb

View file

@ -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)