philipp_von_gup's Avatar
philipp_von_gup 1
-1 Asked
0 Answered
0 Best
0
No one has voted on this question yet :(
1 year, 8 months ago

How many days has a year

Tip for best answer: M$0.10
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

What is Your Answer?

0
0
0

1 Answer

1
mithrandir's Avatar
mithrandir | 1 year, 8 months ago
22
Hi there, and welcome to Mahalo

A year tilically has 365 days, unless it's a leap year, in which case it has 366 days.

You can define whether a year is a leap year following this 'pseudocode' algorithm:
if year modulo 400 is 0
then is_leap_year
else if year modulo 100 is 0
then not_leap_year
else if year modulo 4 is 0
then is_leap_year
else
not_leap_year

So, a year is a leap yearif it can be divided by four, but not if it can be divided by 100, and again if it can be divided by 400.
images:

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates