Problem Description
Write a program to print the star pattern
Input:Number of rows
Output:Star pattern
Refer sample input and output for formatting specification.CODING ARENA
a=int(input())
for i in range(0, a):
for j in range(0, i+1):
print("*",end="")
print()
Test Case 1
Input (stdin)6
Expected Output* ** *** **** ***** ******
Test Case 2
Input (stdin)4
Expected Output* ** *** ****
No comments:
Post a Comment