How does C language cycle odd or even numbers in an interval?
This article mainly introduces the relevant knowledge of "how C language circulates odd or even numbers in the interval". The editor shows you the operation process through practical cases, and the operation method is simple, fast and practical. I hope this article "how to cycle odd or even numbers in C language range" can help you solve the problem.
The odd / even numbers in the range of cyclic output can be judged by the remainder divided by 2.
The following example outputs the even number of the specified range by looping.
Example
# include
Int main () {
Int i
For (I = 1; I