fork download
  1. /* Helloプログラム */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7. int year = 2024;
  8.  
  9. if((year%4==0 && year/100==0)||year%400==0){
  10. printf("うるう年です");
  11. }else{
  12. printf("うるう年ではありません");
  13. }
  14. }
  15.  
Success #stdin #stdout 0.01s 5268KB
stdin
Standard input is empty
stdout
うるう年ではありません