浏览代码

Python file

master
venkat 2 天前
父节点
当前提交
c5bb2f1697
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      dt_loops.py

+ 6
- 0
dt_loops.py 查看文件

@@ -0,0 +1,6 @@
import os
fa = int(input('Enter a Number :'))
f=1
for i in range(2,fa+1):
f=f*i
print(f'factorial({fa})={f}')

正在加载...
取消
保存