8 is a leap year. 104 is also a leap year but your code will not catch it. In pseudocode:
1. Is the year evenly divisible by 4
2. Is the year evenly divisible by 100. If divisible by 4 and not by 100 it is not a new century and is a leap year.
3. If year is evenly divisible by 100 it is a new century. Centuries are only leap years if they are divisible by 400, so to be a leap century a year has to be evenly divisible by 4, 100, and 400. 2000 is a leap year; 1900, 1800, and 1700 are not leap years.

Please hit the
[code]
button for pasting code as indentation is significant.

yea i did somethin like that but when i entr a number less than hundred and devisable by 4 it should say it is a leap year but instead it says it is a leap year and it is not a leap year so it executes else stateent too.