Question: Challenge task In this question, you should use the user-defined function as instructed. In the math class, Dr ahmad asks his students to find out

 Challenge task In this question, you should use the user-defined function

Challenge task In this question, you should use the user-defined function as instructed. In the math class, Dr ahmad asks his students to find out the Average of odd numbers between two given integer numbers(a,b) for many cases (t). Use AvgOdd user-defined function that takes two numbers and returns the Average of odd numbers between them. Constraints t>= 1 b> >= 1 Input Format The first line contains T, the number of test cases. The second input containing two integer values (a, and b) for each test case. EOutput Format print the Average of odd numbers between two numbers with the required output format as illustrated in the sample output. Sample #1 Input 3 39 25 14 Output Average of odd numbers between 3 and 9 = 6 Average of odd numbers between 2 and 5 = 4 Average of odd numbers between 1 and 4 = 2

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!