Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

factorial program in python

def Fact(num):
    z=1
    while(1):
        z=z*num
        num=num-1
        if(num==0):
            break
    
    print(z)
Fact(4)
    
 
PREVIOUS NEXT
Tagged: #factorial #program #python
ADD COMMENT
Topic
Name
2+6 =