Program for Factorial in Java

Here you will get program for factorial in java.

We can find factorial of any number by multiplying it with all the numbers below it.

For example, factorial of 4 is 4*3*2*1 = 24.

Program for Factorial in Java

 

Output

Enter a number:
6

Factorial = 720

1 thought on “Program for Factorial in Java”

Leave a Comment

Your email address will not be published.