0
how to print this square aside
b=int(input("Masukkan Jendela: ")) a=int(input("Masukin angkamu : ")) for j in range(b): for i in range(a) : if (i==0 or i==a-1): print ("#"*a) else: spasi=" "*(a-2) print ("#"+spas+"#") Print (end=" ")
1 Answer
0
I'm not sure thats what you're looking for, but this seems to work:
b=int(input("Masukkan Jendela: "))
a=int(input("Masukin angkamu : "))
for j in range(b):
for i in range(a) :
if (i==0 or i==a-1):
print ("#"*a)
else:
spasi=" "*(a-2)
print ("#"+spasi+"#")
print (end=" ")