Ticker

6/recent/ticker-posts

PL/SQL Program to Print the Inverted Right Triangle Star Pattern- Javainhand Tutorial

In this PL/SQL Tutorial, We will explore how to print inverted right triangle start pattern in PL/SQL.

how to print inverted right triangle start pattern in PL/SQL
PL/SQL Code:-

declare
v_number number:=5;
begin
    for i in 1..v_number
    loop
            for j in 1..v_number-i+1
            loop
            dbms_output.put('*');
            end loop;
    DBMS_OUTPUT.NEW_LINE;
    end loop;
end;

That's all for today, I think(Print the Inverted Right Triangle Star Pattern in PL/SQL Program) post will be helpful for you. If you like the post then share your view in the comment box.


Post a Comment

0 Comments