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

PROGRAMMING:Sfy finding the product of odd numbers

Luz5年前 (2021-05-10)题库413
Before will calculate the largest even number, find out the odd number for you certainly not difficult, come to calculate the odd number product. I'll give you n integers to multiply all the odd numbers in them.
###Input format:
Each test instance occupies a row, and the first number of each row is n, which means that there are n data in this group, followed by N integers,
You can assume that there must be at least one odd number for each set of data.
###Output format:
Output the product of all odd numbers in each group. For test cases, output one line.
###Input example:
Here is a set of inputs. For example:
```in
3 1 2 3
4 2 3 4 5
```
###Output example:
The corresponding output is given here. For example:
```out
three
fifteen
```







answer:If there is no answer, please comment