PL/SQL is one of three key programming languages which is only available with the Oracle Database. PL/SQL is a relational database. Copy the below PL/SQL program and execute it. In this program, we are going to share how to multiply two numbers in PL/SQL with the output.
Copy the below program and execute it to see the program analytics.
num number := 6;
fact number := 1;
while( temp>0 )
fact := fact*temp;
temp := temp-1;
dbms_output.put_line('factorial of '|| num || ' is ' || fact);
factorial of 5 is: 120
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.