Factorial number in JAVA 5! = 5*4*3*2*1=120

 Factorial of number in mathematics

The factorial of a non-negative integer n, denoted by n!, which is the product of all positive integers less than or equal to n. For example, The value of 0! is 1, according to the convention for an empty product  like                     5! = 5*4*3*2*1=120


W.a.p. Find  factorial of given number in JAVA

output of Factorial program in JAVA

Enter number to find factorial : 5

Factorial of  5.0 = 120.0


(Visited 121 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *

Reload Image