Jul 18, 2024
input() function or pass the size as a parameter in a function.n = 5 for examples.print() to print a single star.n stars.end=''.n times.end=' '.n rows.0 to i + 1 (dependent on row number).n and nested loop is set to i + 1.n rows.i to n (reducing by 1 each time).n and nested loop runs from i to n.end=' ' for uniform character and space after each print.End of Notes