C ++ Program to find the count of index pairs in the array positive range product
#include <bits/stdc++.h> NEW_LINE using namespace std ; void positiveProduct ( int arr [ ] , int n ) { int even_count = 0 ; int odd_count = 0 ; int total_count = 0 ; int ans = 0 ; for ( int i = 0 ; i < n ; i ++ ) {