← All problems‹ PrevNext ›Star TriangleEasy#basics#loops#patterns· solved by 0 · time limit 2.0 sPrint a right triangle of stars with nnn rows: row kkk has kkk stars.InputA single integer nnn.Outputnnn lines.Constraints1≤n≤501 \le n \le 501≤n≤50Sample 1Input4 Output* ** *** ****