CPP program to print prime factors in pairs .
#include <iostream> NEW_LINE using namespace std ; void printPFsInPairs ( int n ) { for ( int i = 1 ; i * i <= n ; i ++ ) if ( n % i == 0 ) cout << i << " * " << n / i << endl ; }