# Arup Guha
# 2/13/2020
# Solution to COP 2930 Individual Program #3C: Nested Squares

import turtle

def main():

    # Greeting
    numSq = int(input("How many squares would you like(1-10)?\n"))
    numPixels = int(input("How many pixels per side of the smallest square(20,40,60,80 or 100)?\n"))

    for i in range(numSq):

        # Move the turtle to the top left corner of this square without drawing anything.
        turtle.penup()
        turtle.setpos(-numPixels//2, numPixels//2)
        turtle.pendown()

        # Draw this square.
        for j in range(4):
            turtle.forward(numPixels)
            turtle.right(90)

        # Update the number of pixels for the next square.
        numPixels += 20

# Run it!
main()
            
