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




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

9 thoughts on “PL/SQL Program to Find Factorial of a Number

  1. sivananda ganapathy

    My name is Shiva. I have been lately working in PL/SQL. I have few doubts that I wanna clarify. How to use multiple procedures in same file(.sql format). I get error every time I execute it. But when I copy the same procedure separately in different file, it works. Could you give some examples of the same?

  2. sruthi

    i cant understand what are you saying???plzz give more information about this content.

  3. Rohit prasad ray

    sir please upload the pl/sql program for multiple of any number with function and procedure ….

  4. ganesh

    error in your code do it correct n=&n has mistake please correct and update it

  5. Joice K J

    At the end of the file, you can use / to separate your procedures.

  6. Reshma K r

    Sir plz upload PL/SQL program to find largest of 2 numbers using if statement


Leave a Reply

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