Loops. Loop with parameter (for)




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

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

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: