Question: 2 . Odd Numbers! Given two integers, / and r , print all the odd numbers between / and r ( l and r inclusive

2. Odd Numbers!
Given two integers, /and r, print all the odd numbers between / and r (l and r inclusive).
ALL
2
3
Complete the oddNumbers function in the editor below. It has 2 parameters:
1. An integer, /, denoting the left part of the range.
2. An integer, r, denoting the right part of the range.
The function must return an array of integers denoting the odd numbers between / and r.
Input Format
Locked stub code in the editor reads the following input from stdin and passes it to the function:
The first line contains an integer, /, denoting the left part of the range.
The second line contains an integer, r, denoting the right part of the range.
Constraints
1sisrs 105
Output Format
The function must return an array of integers denoting the odd numbers between / and r. This is printed to stdout by locked stub code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!