例4.8

int main() { int year,leap; printf("enter year:"); scanf("%d",&year); if(year%4==0) {if(year%100==0) {if(year%400==0)leap=1; else leap=0; } else leap=1; } else leap=0; if(leap) printf("%d is",year); e
相關文章
相關標籤/搜索