fork download
  1. <?php
  2. $first = 1239;
  3. $second = 0139;
  4. $result = "no";
  5.  
  6. for ($i=0; $i<=9999; $i++) {
  7.  
  8. if ($i % 2 == 0 and $i == $first) {
  9. $result = "yes";
  10. }
  11.  
  12. if ($i % 2 == 1 and $i == $second) {
  13. $result = "yes";
  14. }
  15. }
  16.  
  17. echo $result;
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
yes