printFactors.cpp