How to make a loop from 1-15 using only odd numbers within that range?
How to make a loop from 1-15 using only odd numbers within that range?
What have you tried?
What exactly is your problem?
Do you know what is odd number?
Do you know ow to get next odd number?
Do you know how to write a loop?
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
From your previous thread:
If you only want odd numbers, you should try changing counter++ (which increments counter by one) to something different.Code:for(counter = 1; counter <= 15; counter++)