0

Practice with nested loops

width=int(input("Enter width: ")) height=int(input("Enter height: ")) for x in range(height): print() for x in range(width): print("*",end=" ") print() for x in range(height-2): print("*",end=" ") for x in range(width-2): print("-",end=" ") print("*") for x in range(width): print("*",end=" ") break

15th Sep 2016, 10:29 PM
Edward Quintero
Edward Quintero - avatar
1 Odpowiedź
0
Nice!
30th Dec 2016, 6:56 PM
Cherry
Cherry - avatar