在线等,一道关于VB程序的期中考试题!

来源:百度知道 编辑:UC知道 时间:2024/05/16 18:04:42
编写程序,求S = (A! + B!)/C!,阶乘的计算分别用Sub过程和Function过程两种方法来实现

funtion f(x)
dim a as ingter
dim s as long
for a=1 to x
s=s*x
next a
return (s)
end funtion
基本的思数就这样了,这样的例子简单,还可以用递归也行
f(x)
if x=1 then
f(1)=1
esle return (f(x-1)*x)

你的同学问了一样的问题
哈哈哈哈哈哈 !!!!!!!!
妈的你们哪个学校的? 垃圾死了

考试题, 还是自己写吧!
我们不希望在这里做题!