• + 0 comments

    I executed below pl/sql block in SQL developer and I got the correct output. When I am trying to execute it here, I am getting '~ no response on stdout ~'. I tried to execute with setting serveroutput on and dbms_output.enable();. Couldn't figure out why below code is not getting output???

    DECLARE
        temp NUMBER := 0;   
    BEGIN
       FOR i IN 1..20 LOOP
          while i+temp<21  LOOP 
             if i+temp = 20 THEN
              DBMS_OUTPUT.PUT('*');
             ELSE
              DBMS_OUTPUT.PUT('* ');
             END IF;
             temp := temp+1;
          END LOOP;
             DBMS_OUTPUT.PUT_LINE('');
          temp := 0;
       END LOOP;
    END;
    

    Any help is highly appreciated. Thanks...