#CCBCHBA0000002. Các số chẵn đến n (Positive Even Numbers up to N)
Các số chẵn đến n (Positive Even Numbers up to N)
Positive Even Numbers up to N
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Print all positive even integers not exceeding n, starting from 2. If n<2, output an empty line.
Input
One integer n.
Output
One line of positive even numbers, separated by single spaces.
Subtasks
- Subtask 1 (20%): .
- Subtask 2 (30%): .
- Subtask 3 (50%): .
Examples
Example 1
Input
7
Output
2 4 6
Explanation
The positive even values up to 7 are 2, 4 and 6.
Example 2
Input
1
Output
Explanation
There are no positive even integers at most 1.