The following code uses incrementing by 2 in a while loop to print odd numbers between 1 and 100.
The following code uses an if statement in a while loop to print odd numbers between 1 and 100.