TumbleView

Your personal Tumblr library awaits

Leap Year - Blog Posts

1 year ago

Happy Birthday to everyone who was born on February 29th! 🎉 :D


Tags

A Leap Year? - This Is The Question Of The Day ...

A Leap Year? - This Is The Question Of The Day ...

This is how you work out whether if a particular year is a leap year.

On every year that is divisible by 4 with no remainder

Except every year that is evenly divisible by 100 with no remainder

Unless the year is also divisible by 400 with no remainder

A Leap Year? - This Is The Question Of The Day ...

Source: Angela Yu, Udemy, 2024

Year 2000:

2000 ÷ 4 = 500 (Leap)

2000 ÷ 100 = 20 (Not Leap)

2000 ÷ 400 = 5 (Leap!)

So, year 2000 is a leap year.

A Leap Year? - This Is The Question Of The Day ...

Year 2100:

2100 ÷ 4 = 525 (Leap)

2100 ÷ 100 = 21 (Not Leap)

2100 ÷ 400 = 5.25 (Not Leap)

But year 2100 is not a leap year.

A Leap Year? - This Is The Question Of The Day ...

Post #113: Free Programming Exercise, Leap Year, 2024.


Tags
Loading...
End of content
No more pages to load
Explore Tumblr Blog
Search Through Tumblr Tags