fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int year;
  6.  
  7. if ( year % 4 == 0 )
  8. if ( year % 100 != 0 )
  9. printf ("Leap Year \n");
  10. else
  11. printf ("Not Leap Year \n");
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5292KB
stdin
2012
stdout
Not Leap Year