Count Odd Numbers in Range Problem

Count Odd Numbers in Range Problem — ExecCode School DSA Practice

Solve the Count Odd Numbers in Range problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a range of whole numbers. Your task is to solve Count Odd Numbers in Range. Count how many odd numbers are in that range and print the count.

Examples

Input 3 7; Output 3. Input 8 10; Output 1

Constraints

0 <= low <= high <= 10^9

Practice Count Odd Numbers in Range free on ExecCode. Browse DSA problems, topic map, and placement guides.