Answer to Question #190035 in Databases | SQL | Oracle | MS Access for jainab

Question #190035

Write a PL/SQL program to find greatest of three numbers and print Fibonacci series up the largest number found.


1
Expert's answer
2021-05-08T22:32:24-0400
declare
x number := 0;
y number := 1;
temp number;
n number := 10;
i number;
begin
   dbms_output.put_line('The fibbanoci series is given below :');
   dbms_output.put_line(a);
   dbms_output.put_line(b);
   for i in 2..n
   loop
      temp:= x + y;
      x := y;
      y := temp;
      dbms_output.put_line(temp);
   end loop;
end;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS