Classic ASP – Find leap year or not

Hi Guys, this is another school / college program written in Classic ASP programming language. ASP is one of the oldest programming language, but still you can see some of the big websites are running in this technology.

This post may help you to understand the basics of ASP technology, such as

1. Multiple if conditions using “And” “OR” Operators in Classic ASP
2. Modulus in Classic ASP

Basically to find Leap year, the below conditions has to be satisfied,

1. The entered Year should be able to evenly divided by 4 (year Mod 4 =0)
2. And the Year should not be evenly divided by 100  (year Mod 100 <>  0)
3. Or the year should be evenly divided by 400 (year Mod 400 == 0)

Okay, here is the entire leap year code written in Classic ASP

Read the comments in the above program to know what is happening in there.


The same program is written in other famous programming languages such as PHP, Java, Python.

Type “Leap year” in the search box and hit enter to get all the programs.


Related Posts

One thought on “Classic ASP – Find leap year or not

Leave a Reply