Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
declare

a number;
b number;
c number;
i numner(2):=1;
n number;
BEGIN
n:=&n;
loop
if i<n mode="hold">a:=&a;
b:=&b;
c:=a+b;
dbms_output.put_line('result'||c);
i:=i+1;
end if;
end loop;

END;
Posted
Comments
Santosh K. Tripathi 5-Feb-15 1:46am    
Hi,
It is not clear. Please use Improve question to make it clear.
Tomas Takac 5-Feb-15 1:46am    
Not clear. What's the question? Are your tags correct? The code looks like Oracle not like SQL Server.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900