Row of numbers
Problem
Given two integers A and B. Print all numbers from A to B inclusive, in ascending order, if A < B
, or in decreasing order otherwise.
Input: Two integer.
Output: Output the answer to the problem. Numbers must be outputed in one line with a space
Examples
№ |
Input |
Output |
1 |
1
10 |
1 2 3 4 5 6 7 8 9 10 |
Запрещенные операторы: [