Declare
I number;
Begin
	I:=1;
While (I<=10) 
loop
	Dbms_output.put_line(I);
	I:=I+1;
End loop;
End;

 OUTPUT:

 NOTE: We used SQL Developer and Oracle XE to Execute this Program. 

1
2
3
4
5
6
7
8
9
10