We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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...
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Draw The Triangle 1
You are viewing a single comment's thread. Return to all 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???
Any help is highly appreciated. Thanks...