Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. if (redBrMjeseca == 2) {
  2.             if(year % 4 == 0)
  3.             {
  4.                 if( year % 100 == 0)
  5.                 {
  6.                     // year is divisible by 400, hence the year is a leap year
  7.                     if ( year % 400 == 0)
  8.                         leap = true;
  9.                     else
  10.                         leap = false;
  11.                 }
  12.                 else
  13.                     leap = true;
  14.             }
  15.             else
  16.                 leap = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement