Write a python code that Mill ask the size of rectangle and
Write a python code that Mill ask the size of rectangle and print a star rectangle according to given size. Sample Output: Enter Size Number:10
Solution
n=int(input(\"Enter size of the number:\"))
for i in range(n+1):
for j in range(n):
if(i==0 or i==n or j==0 or j==n-1):
print (\"*\", end=\" \")
else
print(\" \", end=\" \")
print()
