fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int year;
  5. printf("please enter year: ");
  6. scanf("%d",&year);
  7. if(year%400==0||year%4==0 && year%100!=0)
  8. { printf("the %d is leap year",year);
  9.  
  10. }else{
  11. printf("the %d is not leap year");
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
please enter year: the 32764 is leap year