Driver code
$ arr = array ( 10 , 20 , 9 , 40 ) ; $ x = 400 ; $ n = count ( $ arr ) ; if ( isProduct ( $ arr , $ n , $ x ) ) echo " Yes STRNEWLINE " ; else echo " No STRNEWLINE " ; $ x = 190 ; if ( isProduct ( $ arr , $ n , $ x ) ) echo " Yes STRNEWLINE " ; else echo " No STRNEWLINE " ; ? >