Count pairs from a given range having even sum
Given two positive integers L and R, the task is to find the count of ordered pairs in the range [L, R] such that the sum of elements of each pair is even. Examples: Input: L = 1, R =3Output: 5Explanation:Pairs whose sum of elements are even and lies in the range [1, 3] are { (1, 3), (1, 1), (2, 2),