Python 计算阶乘小于等于10000的最大整数n
n = 1 s = 1 while True: s *= n if s > 10000: break n += 1 print('n!的值小于等于10000的最大整数n为:', n-1)
原文地址: https://www.cveoy.top/t/topic/mJ9g 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
n = 1 s = 1 while True: s *= n if s > 10000: break n += 1 print('n!的值小于等于10000的最大整数n为:', n-1)
原文地址: https://www.cveoy.top/t/topic/mJ9g 著作权归作者所有。请勿转载和采集!