Problem list
Log in
#r03361 · Online Judge > GoldOJ

Descending Range

Bronze III 1.0 s 256 MB

Two natural numbers $a$ and $b$ are given separated by a tilde ~. Print the integers from $b$ down to $a$, one per line.

Input

One line a~b ($1 \le a \le b < 1000$).

Output

Print $b, b-1, \dots, a$, one per line.

Example 1

Input
6~8
Output
8
7
6
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code