Range

Given two numbers a and b, you are asked to print all the integers between those two numbers (a and b included).
The input consists of two numbers a and b. The output should contain all the numbers in between those two starting from a and ending with b, each on a separate line.
Input
2
5

Output
2
3
4
5
Input
5
2

Output
5
4
3
2
 
To check your solution you need to sign in
Sign in to continue