fb pixel

Odd numbers

Given a segment [l; r], your task is to find all the odd numbers in descending order.
The input of the program contains 2 numbers l and r.
The program should print all the odd numbers in that range separated by a space in descending order (l and r including if they are odd).
Input
Output
1 5
5 3 1
1 6
5 3 1
 
To check your solution you need to sign in
Sign in to continue