answersLogoWhite

0


Best Answer

Are the last two digits of the year divisible exactly by 4?

If the last two digits are"00" are the first two digits divisible exactly by 4?

I believe that in Russia "00" Leap Years are those which leave a remainder of 2 or 6 when the first two digits are divided by 9. This is actually more accurate than the system with which most of the rest of the world is familiar and was originated by the Greek Orthodox Church.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the Algorithm to check whether a year is a leap year or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the program in c to check whether a year is leap year or not in simple way?

If the year divides evenly by 4 it's a leap year. If it's a century year it has to divide evenly by 400. 2000 was a leap year. 2100 will not be a leap year.


Was 1999 a leap year?

No it is not. A simple algorithm to check this is if the year is divisible by 4, but not by 100, then it is a leap year. Also if a year is divisible evenly by 400, then it is a leap year, but not all leap years are divisible by 400.


Write a program to check whether a given year is leap year or not using ternary operator?

leap yr = ((y%100!=0 && yr %400==0)?1:(yr%4==0)?1:0; leap yr =1; printf ("leap yr"); else printf ("not leap yr");


How do you create a flow chart for leap year?

draw a flow chart to find whether the given year is leap year or not


In leap year and century which is longer?

A century is made of 100 years. That is longer than one year, whether it is a normal year or a leap year.


How many days are there in 87 years including leap years?

It depends on when you start - whether in a leap year or not, whether your time span includes a xy00 year or not. So there is no simple answer.


Whether there is any relation with 400 and 100 with a leap year as it has with 4 to determine?

There will be a leap year every 4 years except if it is divisible by 100. However, if it is also divisible by 400, it will be a leap year. 2000 was a leap year because it is divisible by 400, but 2100 will not be a leap year.


Why was the year 1500 a leap year?

Because 1500 is a century , so we should check whether it is divisible by 400 not by 4 alone. Since it is not divisible by 400 its not a leap year.1500 WAS actually a leap year, the Gregorian calendar didn't commence until the year 1600.


How do you determine leap years using Linux?

If you want to determine whether a year is a leap year. Use the cal command for the month of February. So to check 2012, for example, do: cal 2 2012 and see if it prints 28 or 29 days.


Can a winter's solstice happen on a leap year?

Winter solstice happens ever year in the latter part of December. Whether it is a leap year or not has nothing whatsoever to do with it.


'write a program to check whether given year is a leap year or not?

#include using namespace std;int main(){short numberOfDays = 0;cout > numberOfDays;if (numberOfDays == 365){cout


Could your disability check be late because its leap year?

are social security going out late because of leap year