# Help with if statements

**URL:** <https://discourse.processing.org/t/help-with-if-statements/32839>\
**Category:** Beginners\
**Tags:** homework\
**Created:** [October 15, 2021, 12:06am UTC](https://discourse.processing.org/t/help-with-if-statements/32839 "2021-10-15T00:06:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Onipunch777](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/onipunch777/32/14715_2.png) [@Onipunch777](https://discourse.processing.org/u/Onipunch777)\
**Post date:** [October 15, 2021, 12:06am UTC](https://discourse.processing.org/t/help-with-if-statements/32839/1 "2021-10-15T00:06:31Z")

</div>

Hello, I was hoping to get step-by-step help to get this homework assignment done. My teacher is asking the class to have the processing code print out odds numbers between 100 to 200 that can not be divided by 3. From what I understand int i should be 100 and i \<= should be 200. If not please correct me if I am wrong. I do understand && but I am not sure if I have to input I with a modulus or something different. I really appreciate the feedback, understanding, and help.

> for(int i= 100; i\<=200; i++)  
> {  
> if( && )  
> {  
> print(i +" ");  
> }  
> }

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 15, 2021, 1:26am UTC](https://discourse.processing.org/t/help-with-if-statements/32839/3 "2021-10-15T01:26:59Z")

</div>

Hello,

> [@Onipunch777](#):
>
> if( && )

Can you share what you have tried so far?

How would you determine if a number is divisible by 2 or by 3 without a remainder?  
Thinks this through and it does not have to be code yet.

`:)`

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 15, 2021, 7:20am UTC](https://discourse.processing.org/t/help-with-if-statements/32839/4 "2021-10-15T07:20:29Z")

</div>

> [@Onipunch777](#):
>
> input I with a modulus

Sounds like a good idea
