#K43377. Right Angled Triangle Pattern

    ID: 27296 Type: Default 1000ms 256MiB

Right Angled Triangle Pattern

Right Angled Triangle Pattern

Given a positive integer \(n\) representing the height of a triangle, output a right-angled triangle pattern using the '#' character. The first line contains one '#' and each subsequent line increases the count by one. For instance, if \(n = 3\), the pattern will be:

#
##
###

This problem tests your ability to iterate and manipulate string patterns.

inputFormat

The input consists of a single integer \(n\) (\(1 \leq n \leq 1000\)), representing the height of the triangle.

outputFormat

Output a right-angled triangle pattern of height \(n\). The \(i\)-th line should contain exactly \(i\) '#' characters. Do not output any extra spaces or blank lines.

## sample
3
#

###

</p>