fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main(){
  4. int a,b,dem;
  5. scanf("%d",&b);
  6. dem=0;
  7. for(b=0;b<100;b++){
  8. scanf("%d",&a);
  9. for(int u=1;u<=a;u++){
  10. if (a%u==0){
  11. if(u%2==0){
  12. dem++;
  13. }
  14. }
  15. }
  16. printf("%d",dem);
  17. }
  18. return 0;
  19. }
  20.  
  21.  
Success #stdin #stdout 0s 544KB
stdin
Standard input is empty
stdout
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000