最佳答案:判断闰年的方法是该年能被4整除并且不能被100整除,或者是可以被400整除。main(){int n;printf("请输入年份"); scanf("%d",&n); if(((n%4)==0