#C14911. Square Elements Transformation
Square Elements Transformation
Square Elements Transformation
You are given a list of integers. Your task is to compute the square of each element in the list and output the resulting list. For an integer \(a\), its square is given by \(a^2\). The order of the output should be the same as the order of the input.
If the input list is empty, output nothing.
inputFormat
The input is read from stdin and has the following format:
- The first line contains an integer \(n\) representing the number of elements in the list.
- The second line contains \(n\) space-separated integers.
outputFormat
The output should be written to stdout as a single line containing \(n\) space-separated integers, where each integer is the square of the corresponding input integer.
## sample4
1 2 3 4
1 4 9 16