Paste Search Dynamic
Recent pastes
is not / is a Leap Year
  1. <?php
  2. $year=1890;
  3. while($year<3200)
  4. {
  5. if($year%400==0 || ($year%100!=0 && $year%4==0))
  6. {
  7. echo $year.' is Leap Year';
  8. }
  9. else
  10. {
  11. echo $year.' is Not a Leap Year';
  12. }
  13. $year++;
  14. }
  15. ?>
Parsed in 0.004 seconds