Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions Fibonacci series
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
DECLARE

a NUMBER := 0;

b NUMBER : = 1;

temp NUMBER;

n NUMBER := 10;

1 NUMBER;

BEGIN

DBMS_OUTPUT.PUT_LINE(‘Fibonacci series:’);

DBMS_OUTPUT.PUT_LINE(a);

DBMS_OUTPUT.PUT_LINE(b);

FOR i IN 2..n LOOP

temp := a + b;

a := b;

b:= temp;

DBMS_OUTPUT.PUT_LINE(temp);

END LOOP