Adapted by Neilor Tonin, URI Brazil
Read an integer value X (1 <= X <= 1000). Then print the odd numbers from 1 to X, each one in a line, including X if is the case.
The input will be an integer value.
Print all odd values between 1 and X, including X if is the case.
Input Sample | Output Sample |
8 |
1 |