Star patterns

 # Star Display

"""


"""

# Read Number of Rows and Columns 

R = int(input("Enter number of Rows : "))

C = int(input("Enter number of Columns : "))


print("Star Display : ")


print("*  "*C)


for n in range(1,R-1,1):

print("*  ",end="")

print("   "*(C-2),end="")

print("*  ")


print("*  "*C)


No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu