#C12169. Square Positive Even Numbers
Square Positive Even Numbers
Square Positive Even Numbers
Given a list of integers, your task is to identify all positive even numbers from the list and output their squares. For any integer \(x\) in the list, if \(x > 0\) and \(x \bmod 2 = 0\), you need to compute \(x^2\). The numbers in the resulting list should appear in the same order as they appear in the input.
inputFormat
The first line of input contains an integer \(n\), representing the number of elements in the list. The second line contains \(n\) space-separated integers.
outputFormat
Output a single line containing the squares of all positive even numbers in the list, separated by a single space. If there are no such numbers, output an empty line.
## sample3
2 4 6
4 16 36
</p>