All possible co | Function to count possible pairs ; total count of numbers in range ; printing count of pairs ; driver code
function CountPair ( L , R ) { let x = ( R - L + 1 ) ; document . write ( x / 2 + " " ) ; } let L , R ; L = 1 ; R = 8 ; CountPair ( L , R ) ;