fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int y;
  6. printf("Enter a Year:\n");
  7. scanf("%d", &y);
  8. if(y%400==0||y%4==0 && y%100!=0)
  9. printf("%d is a Leap Year");
  10. else
  11. printf("%d is not a Leap Year");
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
Enter a Year:
32400 is not a Leap Year