# Python program to calculate the factorial of a number using while loop

1199
```num=int(input("Enter a number: "))
fact=1
a=1
while(a<=num):
fact=fact*a       #fact*=a
a=a+1             #a+=1
print("The factorial of",num,"is",fact)

Output 1:
Enter a number: 4
The factorial of 4 is 24
Output 2:
Enter a number: 6
The factorial of 6 is 720
```

इन्हें भी देखें।

Python Programs के लिये यहाँ click करें।

Python program to calculate the factorial of a number using while loop program to calculate the factorial of a number using while loop in python write a program to calculate the factorial of a number using while loop write a program to calculate the factorial of a number using while loop in python Python program to calculate the factorial of a number program to calculate the factorial of a number in python Python program to calculate the factorial of a number using loop write a program to calculate the factorial of a number using loop write a program to find factorial of a number using while loop python program to find factorial of a number using while loop write a program to find factorial of a number using while loop in python write a program to find factorial of a number write a program to find factorial of a number in python program to calculate the factorial of a given number