def expanded_form(num):
    """
    Expands an integer into ones, tens, hundreds, etc...
    :param num: an integer value.
    :return: a string of the integer in expanded form.
    """
    result = []
    divider = 10
    while divider < num:
        temp = num % divider
        if temp != 0:
            result.insert(0, str(temp))
        num -= temp
        divider *= 10
    result.insert(0, str(num))
    return " + ".join(result)