Skip to content

8140171224/factriol-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

define function fact(n):

def fact(n):

variable f is equal to value 1

f = 1

For loop for Factorial in Python

for i in range(1, n+1):
    f = f*i
return f

x is value for main.py

x = 4

call function

result = fact(x)
print(result)

Information

BY aakash padhiyar

8140171224