#C1499. Taco Triangle Pattern

    ID: 44699 Type: Default 1000ms 256MiB

Taco Triangle Pattern

Taco Triangle Pattern

Given a positive integer \(N\) representing the number of rows, generate a right-angled triangle pattern. In the \(i\)-th row, the first \(i\) characters should be asterisks (*) and the remaining \(N-i\) characters should be spaces. Each row must contain exactly \(N\) characters.

For example, if \(N=3\), the pattern should be:

*  
** 
***

Ensure that your program reads from standard input (stdin) and writes to standard output (stdout).

inputFormat

A single integer (N) ((1 \leq N \leq 100)) representing the number of rows in the triangle.

outputFormat

Print the triangle pattern with (N) rows. Each row must contain (N) characters composed of asterisks and spaces as described.## sample

3
*  

** ***

</p>