Homework 16

 

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.