Homework 16

This homework is not due until Friday 28 Sept, although you should think about doing it tonight before you forget what was covered in class.


This program is missing the definition of the function firstfactor. Complete the program by defining the function (a description of what the function is supposed to do is given in the source code's comments). When your program is working correctly, a typical run might look like this:

Enter an integer larger than 1: 60
The factorization of 60 is (2)(2)(3)(5)

Turn in a printout of your program and a screenshot showing it running on the input value of 21978.