You are viewing a single comment's thread. Return to all comments →
you can do this with 20 levels, just need the right padding size:
select rpad('*', level*2, ' *') from dual connect by level <= 20;
or to flip the triangle:
rpad('*', (20 - level + 1) * 2, ' *')
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 →
you can do this with 20 levels, just need the right padding size:
or to flip the triangle: