Program to print factors of a number in pairs | PHP program to print prime factors in pairs . ; Driver code
< ? php function printPFsInPairs ( $ n ) { for ( $ i = 1 ; $ i * $ i <= $ n ; $ i ++ ) if ( $ n % $ i == 0 ) echo $ i . " * " . ▁ $ n ▁ / ▁ $ i ▁ . " " } $ n = 24 ; printPFsInPairs ( $ n ) ; return 0 ; ? >