Question: Ive tested the code and noticed that lines 9-11 play no role in this code. i commented it out and saw that i get 3

Ive tested the code and noticed that lines 9-11 play no role in this code. i commented it out and saw that i get 3 5 and 7 regardless of wether or not 9-11 is there.
However, im not understanding how 3 5 7 is printed , i thought 4 6 should have been printed. This is because the if statement in the void function says, if a modded number has a remainder of 0 print it. So, essentially print all the even numbers, but in this progran it only prints the odd numbers.
Why is that? Am i misunderstanding something?  Ive tested the code and noticed that lines 9-11 play no

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!