Ruby阶乘函数 [英] Ruby factorial function

查看:101
本文介绍了Ruby阶乘函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要疯了:阶乘的Ruby函数在哪里?不,我不需要教程实现,我只需要库中的函数.不是在数学里!

I'm going crazy: Where is the Ruby function for factorial? No, I don't need tutorial implementations, I just want the function from the library. It's not in Math!

我开始怀疑,这是标准库函数吗?

I'm starting to doubt, is it a standard library function?

推荐答案

标准库中没有阶乘函数.

There is no factorial function in the standard library.

这篇关于Ruby阶乘函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆