Ruby
China
Ruby
ruby 里面的阶乘如何计算?
Topics
招聘
Wiki
酷站
Gems
Sign Up
Sign In
Ruby
ruby 里面的阶乘如何计算?
zlx_star
·
September 26, 2012
· Last by
zlx_star
replied at
September 26, 2012
· 3434 hits
比如 10!
References
Reference By
今天看了 matz 的一个推,很有感触啊。
No reference
zlx_star
#0
September 26, 2012
http://ruby-china.org/topics/1735
完美
(1..10).inject(:*)
You need to
Sign in
before reply, if you don't have an account, please
Sign up
first.
Newell
@zlx_star
Ruby, Rust, .Net, 各种脚本爱好者
杭州
Total
1
replies
New Reply comming, click to load.