Advertisement
coolizer

leapYear

Mar 12th, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. //Date: 13-04-2014
  2. //Leap Year Detector
  3.  
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6.  
  7. int main (int argc, const char * argv []) {
  8.  
  9.    int year;
  10.    int START_OF_THE_GREG_CALENDAR;
  11.    START_OF_THE_GREG_CALENDAR = 1582;
  12.  
  13.    printf ("Enter a year\n");
  14.    
  15.    scanf ("%d", &year);
  16.  
  17.    //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement