Driver Code
int main ( ) { int arr [ ] = { 1 , 2 , 3 , 4 , 7 , 13 } ; int n = sizeof ( arr ) / sizeof ( arr [ 0 ] ) ; int D = 5 , A = 4 , B = 2 ; cout << findPossibleDerivables ( arr , n , D , A , B ) << " STRNEWLINE " ; int a [ ] = { 1 , 2 , 3 } ; n = sizeof ( a ) / sizeof ( a [ 0 ] ) ; D = 6 , A = 3 , B = 2 ; cout << findPossibleDerivables ( a , n , D , A , B ) << " STRNEWLINE " ; return 0 ; }