Using a for loop, print the value 10 to 1 in reverse order
DECLARE
i number(2):=10;
BEGIN
for i in reverse 1 .. 10 LOOP
dbms_output.put_line(i);
END LOOP;
END;
/
DECLARE
i number(2):=10;
BEGIN
for i in reverse 1 .. 10 LOOP
dbms_output.put_line(i);
END LOOP;
END;
/
This website uses cookies to ensure you get the best experience on our website.