杭电2006
#include <stdio.h>int main (void){int n,i,a,s;while(scanf("%d",&n)!=EOF){s=1;for(i=0;i<n;i++){scanf("%d",&a);if(0!=a%2)s*=a;}printf("%d\n",s);}return 0;}
补充:软件开发 , C语言 ,
#include <stdio.h>int main (void){int n,i,a,s;while(scanf("%d",&n)!=EOF){s=1;for(i=0;i<n;i++){scanf("%d",&a);if(0!=a%2)s*=a;}printf("%d\n",s);}return 0;}
补充:软件开发 , C语言 ,