#include "stdio.h" int main() { int i; printf("input the year.\n"); scanf("%d",&i); { if((i%4==0&&i%100!=0)||i%400==0) printf("year:%d,month:2,day:29\n",i); else printf("year:%d,month:2,day:28\n",i); } return 0; }
#include "stdio.h" int main() { int i; printf("input the year.\n"); scanf("%d",&i); { if((i%4==0&&i%100!=0)||i%400==0) printf("year:%d,month:2,day:29\n",i); else printf("year:%d,month:2,day:28\n",i); } return 0; }