PL/SQL Program to Find Factorial of a Number

Here you will get pl/sql program to find factorial of a number.

We can calculate factorial of a number by multiplying it with all the numbers below it.

For example factorial of 5 = 5 x 4 x 3 x 2 x 1 = 120.

 

PL/SQL Program to Find Factorial of a Number

 

 

Output

Enter value for n: 10
old 7: n:=&n;
new 7: n:=10;
factorial=3628800

Leave a Reply

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