www.itechowais.tech |
PL/SQL program to read a number and calculate its Factorial using ‘while loop’ :
set serveroutput on ; n number := &n ; fact number := 1 ; begin while (n > 0) loop fact := fact * n ; n := n - 1 ; end loop ; dbms_output.put_line(fact) ; end ; / |
0 Comments
If you have any suggestion or doubt, please ask me.
Emoji