HDU/2006/main.c

17 lines
252 B
C
Raw Normal View History

2020-08-31 16:48:58 +00:00
#include <stdio.h>
int main(void){
int numbers = 0;
while(scanf("%d",&numbers) == 1){
int temp = 0, all = 1;
while(temp++ < numbers){
int n = 0;
scanf("%d",&n);
if(n % 2) all *= n;
}
printf("%d\n",all);
getchar();
}
return 0;
}