CPP program to count subarrays having product less than k .
#include <iostream> NEW_LINE using namespace std ; int countsubarray ( int array [ ] , int n , int k ) { int count = 0 ; int i , j , mul ; for ( i = 0 ; i < n ; i ++ ) {