Right-angled triangle
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Create a program that outputs a right-angled triangle made of stars, where both legs have a length of n
.
Input
You will receive an integer n
(2 ≤ n ≤ 50
), which specifies the length of each leg of the triangle.
Output
Display a right-angled triangle using stars, with the specified dimensions.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 1K
Acceptance rate 67%