Binary squares

 # Binary Display

"""

"""

# Read Number of Rows and Columns 

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

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


print("Binary Display : ")


print("0  "*C)


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

print("0  ",end="")

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

print("0  ")


print("0  "*C)


No comments:

Post a Comment

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

Anu