2 程序

print("="100)print("数字的阶乘")def jiecheng(number): result=1 while number>0: result=number number-=1 return resultprint("6的阶乘是",jiecheng(6))print("4的阶乘是",jiecheng(4))print("100的阶乘是",jiecheng(100))

3 结果

php100的阶乘Python 实例法式七100的阶乘是若干 JavaScript