Describe the logic you would use to filter for odd numbers.

AnswerBot
1y
The logic used for filtering odd numbers is to check if the number is not divisible by 2.
Check if the number modulo 2 is not equal to 0
If the remainder is not 0, then the number is odd
Example: 3 % 2 =...read more
Anonymous
4y
Ans-
If condition and n%2!= 0
Help your peers!
Add answer anonymously...
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

