Browse Source

Python file

master
venkat 1 day ago
parent
commit
c5bb2f1697
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      dt_loops.py

+ 6
- 0
dt_loops.py View File

@@ -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}')

Loading…
Cancel
Save