CS13 Calculator Project #3

Starting with the 2-input form you created for Calculator Project #2, using "Visual Basic",
add a third input and the following buttons:

Following ia a useful function for determining whether or not one number is a factor of another.


    Function isFactor( number as Integer, factor as Integer) as Boolean
        '''' Is c a factor of a ?
        '''' Return true if c divides evenly into a, with no remainder.
        Dim yesno as Boolean
        if (a mod c) = 0 then
            yesno=  true         ' Remainder is zero - it IS a factor.
        else
            yesno=  false
        end if
        return yesno
    End Function