Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Date: 14-03-2014
- //Leap Year Function
- //1581, 1582, 1900, 1990, 1999, 2000, 2014, 4000
- #include <stdlib.h>
- #include <stdio.h>
- #include <assert.h>
- #define START_OF_GREG_CALENDAR 1582
- int isLeapYear (int year)
- int main (int argc, char* argv []) {
- printf ("Please enter a year after 1582\n");
- if (year < 1582) {
- printf ("Please enter a year greater than 1582\n");
- }else{
- scanf ("%d", year)
- if ((year % 400)==0){
- if ((year % 100) ==0 {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement