Find all factors of a natural number | Set 1 | function to print the divisors ; Driver Code
< ? php function printDivisors ( $ n ) { for ( $ i = 1 ; $ i <= $ n ; $ i ++ ) if ( $ n % $ i == 0 ) echo $ i , " ▁ " ; } echo " The ▁ divisors ▁ of ▁ 100 ▁ are : STRNEWLINE " ; printDivisors ( 100 ) ; ? >