Computer Science, asked by alsoong3, 2 months ago

Write a program to print the product of odd nos. in the range 1-11. (using for loop)​

Answers

Answered by CharithraD
1

Answer:

Input: start = 4, end = 11

Output: 5, 7, 9, 11

Input: start = 3, end = 11

Output: 3, 5, 7, 9, 11

Explanation:

 Print all odd numbers from given list using for loop

Define start and end limit of range. AIterate from start till the range in the list using for loop and check if num % 2 != 0. If the condition satisfies, then only print the number.

Similar questions