• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Condition to check if exactactly 2 numbers in the Array of 3 elements are odd

Resolved: Condition to check if exactactly 2 numbers in the Array of 3 elements are odd

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I have 3 values in an array.
How can I write an if statement to check if 2 of the 3 numbers are odd to print a message?
Code:
So what can be used to check if 2 out of 3 numbers are odd?

Answer:

Try this.
output:

If you have better answer, please add a comment about this, thank you!

arrays if-statement java
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: In a Pinescript v5 Strategy why is my bool not working?

02/04/2023

Resolved: net::ERR_HTTP2_PROTOCOL_ERROR by http get request angular 15.2

02/04/2023

Resolved: How do I stop the command from happening if the requirements for it to work aren’t sert Discord.js

02/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.