#include <stdio.h>
int main()
{
int n, i, j, sum, k;
sum = 1;
while (scanf("%d", &n) != EOF)
{
for (k = 0; k < n; k++)
{
scanf("%d", &j);
if (j % 2 != 1) //判断是否为奇数
sum *= j;
/* code */
}
printf("%d\n", sum);
sum = 1;
}
return 0;
}
1085: 求奇数的乘积(多实例测试)(奇数判断)
最新推荐文章于 2022-08-30 20:03:02 发布