Question: 2 . Odd Numbers! Given two integers, / and r , print all the odd numbers between / and r ( l and r inclusive
Odd Numbers!
Given two integers, and r print all the odd numbers between and r l and r inclusive
ALL
Complete the oddNumbers function in the editor below. It has parameters:
An integer, denoting the left part of the range.
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
sisrs
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
