JAVA PROGRAM TO FIND THE FACTORIAL OF A NUMBER
The factorial of a number is the multiplication of all positive integers from 1 to that number . Factorial of number n is represented as n! Formula for Factorial : n!=n*(n-1)*(n-2)*(n-3)*……………*1 Example : 5!=5*4*3*2*1=120 6!=6*5*4*3*2*1=720 Iterative Approach : […]
JAVA PROGRAM TO FIND THE FACTORIAL OF A NUMBER Read More »