用 for 循环语句实现编写一个求n 阶乘的函数文件

找到一个 n!> 10100 的值(利用上题的n阶乘函数文件) 非常感谢你的回答,这两个问题实在是没有想出来,谢谢你们的帮忙

第1个回答  2013-04-14
Private Sub Form_click()
Dim n As Integer, t As Variant
n = 1
t = 1
For n = 1 To 100
t = t * n
If t > 10100 Then Exit For
Next n
Print n
End Sub
第2个回答  2013-04-14
long chenji(int n)long tem;for(int i=1;i<=n;i++) { tem*=i; if(tem>10100) cout<<tem<<endl; } return tem;}
第3个回答  2017-08-24
你要的是求n值还是 n阶乘函数 。。。
相似回答