Skip to content

Instantly share code, notes, and snippets.

@JubbaSmail
Created November 15, 2014 22:31
Show Gist options
  • Select an option

  • Save JubbaSmail/505aabdf294f8bd48df8 to your computer and use it in GitHub Desktop.

Select an option

Save JubbaSmail/505aabdf294f8bd48df8 to your computer and use it in GitHub Desktop.
declare
x number;
begin
for i in 0..10 loop
dbms_output.put_line('+'||i);
end loop;
--------------------------
x:=10;
loop
if x < 0 then
exit;
end if;
dbms_output.put_line('-'||x);
x:=x-1;
end loop;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment