Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (redBrMjeseca == 2) {
- if(year % 4 == 0)
- {
- if( year % 100 == 0)
- {
- // year is divisible by 400, hence the year is a leap year
- if ( year % 400 == 0)
- leap = true;
- else
- leap = false;
- }
- else
- leap = true;
- }
- else
- leap = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement