Loops. Loop with parameter (for)




Task
Time limit: 1000 ms,
Memory limit: 256 Mb

Given two integers A and B. It is necessary to print all the odd numbers on the segment from A to B
Input: Two integers A and B are input to the program. (\(A \leq B\)), one per line
Output: output all the odd numbers on a given interval with a space

Example
Input Output
1 1
10
1 3 5 7 9

Please note: you cannot use the conditional if statement in this task.
Prohibited statements:if

Auto CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:

Rules for designing programs and a list of errors during automatic task verification
           

Results: