#include<stdio.h>
void main()
{
int a,b;
printf(\"Please input year!\\n\");
scanf(\"%d\",&a);
if(a%4==0)
{
if(a%100!=0){
b=29;
printf(\"The number of days of February:datasum=%d\\n\",b);
}
else{
if(a%400==0){
b=29;
printf(\"The number of days of February:datasum=%d\\n\",b);
}
else{
b=28;
printf(\"The number of days of February:datasum=%d\\n\",b);
}
}
}
else
{
b=28;
printf(\"The number of days of February:datasum=%d\\n\",b);
}
}
应该就是这样写的[s:2]