Aim - PL/SQL program to print 1 to 10 using basic loop.
Sample Program: -
declare num number(3); begin num:=1; loop dbms_output.put_line(num); num:=num+1; exit when num>10; end loop; end;
Output: -
1
2
3
4
5
6
7
8
9
10
declare num number(3); begin num:=1; loop dbms_output.put_line(num); num:=num+1; exit when num>10; end loop; end;
No comments:
Post a Comment
Dont SPAM