Submit | All submissions | Best solutions | Back to list |
UTP_Q2 - EVEN if you know, the ODD is... |
Write a Python code to display all even numbers between two integers inclusive
Input
An integer n in the first line indicates the number of cases. Lines 2 until (n+1) each has the range in which even numbers can be identified from lower bound x and upper bound y, inclusive
Output
For each case, all even numbers between x and y inclusive, will be displayed horizontally, separated by a space
Example
Input: 4 3 20 1 17 -5 6 100 109 Output: 4 6 8 10 12 14 16 18 20 2 4 6 8 10 12 14 16 -4 -2 0 2 4 6 100 102 104 106 108
Added by: | jbA |
Date: | 2021-06-02 |
Time limit: | 2s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | NCSHARP JULIA PYTHON3 |