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 (a,0,-1):
for j in range(1, i + 1):
print("*", end='')
print()
Test Case 1
Input (stdin)5
Expected Output***** **** *** ** *
Test Case 2
Input (stdin)7
Expected Output******* ****** ***** **** *** ** *
No comments:
Post a Comment