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()

 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 Solutionn=int(i

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site