-->
当前位置:首页 > 题库

PROGRAMMING:The even number in the array is divided by 2, and the odd number is multiplied by 2

Luz5年前 (2021-05-10)题库356
Divide all even numbers in 10 numbers by 2, multiply all odd numbers by 2 and output these values.
###Input format:
Enter 10 positive integers separated by spaces in a row, and only one space can be used between the data.
###Output format:
Output the changed array directly in one row, and each data output takes up 4 columns.
###Input example:
```in
1 2 3 4 5 6 7 8 9 10
```
###Output example:
```out
2 1 6 2 10 3 14 4 18 5
```






answer:If there is no answer, please comment