【杭电】[2006]求奇数的乘积

题目描述
输入输出
那时候判定奇数还是用的%2 不过……不改了
留作纪念吧

#include<stdio.h>
int main() {
    int n,i,x,s;
    while(scanf("%d",&n)!=EOF) {
        s=1;
        for(i=0; i<n; i++) {

            scanf("%d",&x);
            if(x%2!=0)
                s=s*x;
        }
        printf("%d\n",s);
    }
    return 0;
}
原文地址:https://www.cnblogs.com/BoilTask/p/12570186.html