Inverted Right-Angled Triangle Pattern With Asterisks

Princy Prakash
May 25, 2023

--

ALGORITHM:

  1. Get the input value n, which represents the number of rows in the inverted triangle pattern.
  2. Start an outer loop to iterate over each row, i from 0 to n.
  3. Start an inner loop to iterate over each column, j from 0 to n-i.
  4. Inside the inner loop, print an asterisk (“*”).
  5. After the inner loop completes, create a new line or move to the next row.
  6. Repeat steps 3 to 5 until all rows and columns of the inverted triangle pattern are printed.

FLOWCHART:

--

--

Princy Prakash
Princy Prakash

Written by Princy Prakash

Hi I Am Princy. I recently discovered my passion for programming and excited to get deeper into the world of technologies also in problem-solving

No responses yet