Anonymous user
Fibonacci sequence: Difference between revisions
m
→{{header|PL/SQL}}: Simplified the code (using CASE statement) and added error handling.
Not a robot (talk | contribs) (Add MAD) |
m (→{{header|PL/SQL}}: Simplified the code (using CASE statement) and added error handling.) |
||
Line 8,471:
=={{header|PL/SQL}}==
<lang PL/SQL>
begin
▲ nuP integer;
case when p_num < 0 then raise_application_error(-20001, 'Invalid input: ' || p_num, true);
when p_num in (0, 1) then f := p_num;
end case;
▲ For nuI in 2..p_iNumber loop
end fnu_fibonacci;
/</lang>
▲ return(nuFib);
=={{header|Plain English}}==
|