While Loop :

Set Serveroutput On;

DECLARE
v_no  NUMBER := &no;
f NUMBER := 1;
n_temp NUMBER;
BEGIN
n_temp := v_no;
WHILE v_no > 0
LOOP
f := f * v_no;
v_no   := v_no – 1;
END LOOP;

DBMS_OUTPUT.PUT_LINE(‘factorial of ‘ || n_temp ||’ is ‘ || f);

END;
/

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

©2018 MYBSCIT.com. An initiative by some failures to make student scholars.

or

Log in with your credentials

Forgot your details?