Professional Documents
Culture Documents
Fctorial of A Number
Fctorial of A Number
Fctorial of A Number
1 1 Fact= 1 * 1 =1 Is 1 = 4 No
N=N+1= 1+1=2
2 1 Fact= 1 * 2 = 2 Is 2 = 4 No
N=N+1= 2+1=3
3 2 Fact= 2 * 3 = 6 Is 3 = 4 No
N=N+1= 3+1=4
4 6 Fact= 6 *4 = 24 Is 4 = 4 Yes
Print 24