Question: Given two integers,Iand r, print all the odd numbers between /and r( and r inclusive) Complete the oddNumbers function in the editor below. It has

 Given two integers,Iand r, print all the odd numbers between /and

Given two integers,Iand r, print all the odd numbers between /and r( and r inclusive) Complete the oddNumbers function in the editor below. It has 2 parameters 1. An integer,I, denoting the left part of the range. The function must return an array of integers denoting the odd numbers between / and 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, I, denoting the left part of the range. The second line contains an integer, f, denoting the right part of the range 1slsrs 1O 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 in the editor Sample Input Sample Output Explanation The value of is 2 and value of r is 5. The odd numbers between 12, 5) are 3 and5 Sample Input 1 Sample Output Explanation 1 The value of is 3 and value of r is 9. The odd numbers between 13, 9) are 3,5,7 and 9 Start with this vector oddNumbers(int l, int r) //code here

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 Databases Questions!