URI Online Judge | 1067
Odd Numbers
Read an integer value X (1 <= X <= 1000). Then print the odd numbers from 1 to X, each one in a line, including Xif is the case.
Input
The input will be an integer value.
Output
Print all odd values between 1 and X, including X if is the case.
| Input Sample | Output Sample |
| 8 | 1 3 5 7 |
[WAIT]
First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one think, just believe in yourself.....YOU CAN.....YOU KNOW....
See the ANSWER here...
No comments:
Post a Comment