Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  5
Language: C/C++
Code:
#include <stdio.h>
#include <conio.h>
void main()
{int N, i, pr, A[10];
printf("Vvedite Nn");
scanf("%d", &N);
printf("Vvedite massivn");
for(i=1;i<=N;i=i+1)
     scanf("%d", &A[i]);
i=1;
pr=1;
while(i<=N)
     {if(A[i]%2==0)
          pr=pr*A[i];
     else;
     i=i+1;
     if(A[i]%2==1)
          pr=0;}
printf("n");
printf("Rezyltatn");
printf("n");
printf("%d", pr);
getch();
}
     
          
Comments: