fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int input = 20002;
  5. int base = 1;
  6.  
  7. while(input / base / 10) base*=10;
  8.  
  9. for(; input; input%=base, base/=10)
  10. {
  11. if ((input/base) && !(input / base % 2))
  12. {
  13. printf("%d", input/base);
  14. }
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 4404KB
stdin
Standard input is empty
stdout
22