其他分享
首页 > 其他分享> > 杭电2006

杭电2006

作者:互联网

#include<stdio.h>
int main(){
	int n,i,t,sum;
    while(~scanf("%d",&n)){
        sum=1; 
    	for(i=1;i<=n;i++){
    		scanf("%d",&t);
    		if(t%2){
    			sum*=t;
			}
		}
		printf("%d\n",sum);
	}
	return 0;
}

标签:int,sum,杭电,while,2006,main
来源: https://blog.csdn.net/qq_60656035/article/details/120449091