是不是這樣的
#include <stdio.h>
int main()
{
??? int year = 2014; //今年是2014年//補(bǔ)全一下代碼
?if((year%4==0&&year%100!=0)||year%400==0)
??? {
??????? printf("今年是閏年\n");
???????
??? }
??? else
??? {
??????? printf("今年是平年\n");
??? }
???
???
???
??? return 0;
}
2019-10-05
這個對了