fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int x;
  5. scanf("%d",&x);
  6. if ((x%4==0) || (x%400==0) )
  7. printf("うるう年 \n");
  8. else
  9. printf(" うるう年じゃない \n");
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5320KB
stdin
2008
stdout
うるう年