這個(gè)挺簡(jiǎn)單
#include <stdio.h>
int main()?
{
? ? int year = 2014; //今年是2014年
? ? //補(bǔ)全一下代碼
? ? if(year%4==0 && year%100!=0)
? ? {
? ? ? ? printf("%s\n","今年是閏年");
? ? }
? ? else
? ? {
? ? ? ? printf("%s\n","今年是平年");
? ? }
? ??
? ??
? ??
? ??
? ? return 0;
}
2015-12-12
因?yàn)槟銓?shí)在是太聰明了。