5 4 3 2 1
4 3 2 1
3 2 1
2 1
1
DECLARE
var VARCHAR2 (20);
BEGIN
FOR i IN REVERSE 1 .. 5
LOOP
FOR j IN REVERSE 1 .. i
LOOP
var := var || ' ' || j;
END LOOP;
DBMS_OUTPUT.put_line (var);
var := NULL;
END LOOP;
END;
No comments:
Post a Comment