def square_table_while(n):
    """
    Returns: list of squares less than (or equal to) N 
    
    This function creates a list of integer squares 1*1, 2*2, ...
    It only adds those squares that are less than or equal to N.
    
    Parameter n: the bound on the squares
    Precondition: n >= 0 is a number
    """
    seq = []
    k = 0
    while k*k < n:
        seq.append(k*k)
        k = k+1
    
    return seq