Write a function that tells if the given year is a leap year or not. To recall the rules about leap years, check the exercise problem://problemsjutge.org:problems/p1/jpetit/traspas-elemental.pbm.
| C++ | |
| C | |
| Java | |
| Python | |
|
The parameter @year@ is between 1800 and 9999, both included.
You only need to submit the required procedure; your main program will be ignored.
Input/Output