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.
Draw The Triangle 1
Draw The Triangle 1
Sort by
recency
|
1265 Discussions
|
Please Login in order to post a comment
For MySQL
FOR ORACLE SQL
SELECT LEVEL AS row_num, SUBSTR('* * * * * * * * * * * * * * * * * * * ', ROWNUM) FROM DUAL CONNECT BY LEVEL <= LENGTH(' * * * * * * * * * * * * * * * * * * *');
declare @R int =20 while (@R>0) begin print replicate('*',@R) set @R= @R -1 end;
the result looks fine but system says wrong answer. any suggestions why?