#C13448. Double Elements

    ID: 42987 Type: Default 1000ms 256MiB

Double Elements

Double Elements

Given an array of integers, you are required to create a new array where each element is doubled. In mathematical form, for each element \(x\), the output element should be \(2x\). This problem will test your ability to read from standard input and write to standard output.

inputFormat

The input consists of two lines. The first line contains an integer (n) representing the number of elements in the array. The second line contains (n) space-separated integers.

outputFormat

Output a single line containing the doubled integers, separated by a single space.## sample

4
1 2 3 4
2 4 6 8