All the even elements will make pairs with all the odd element and the sum of the pair will be odd
oddPairs += ( cntEven * cntOdd ) ; document . write ( " " + oddPairs + " " ) ; document . write ( " " + evenPairs ) ; }