-moz-user-select:none; -webkit-user-select:none; -khtml-user-select:none; -ms-user-select:none; user-select:none;

Sunday, 12 April 2015

Determining a leap year

Hello and Asalam o Alikum. I hope you all are fine by the grace of Allah Almighty.
I hope you all have visited my previous blogs.Now its time to revise some previous concepts.

Today I am here with an important program that will input a year from the user and determine whether it is leap or not.
 But what is a leap year?

Its simple logic is that a year which is exactly divisible by 4 is a leap year otherwise it is not a leap year.

I have used simple "if-else" condition in this program.So, below is the source code of this program:

Source code


Output

No comments:

Post a Comment