程序设计实验\实验二 选择与分支
月份
#include<iostream>
using namespace std;
int main()
{
int year,mouth,days;
cin>>year>>mouth;
if(mouth==1||mouth==3||mouth==5||mouth==7||mouth==8||mouth==10||mouth==12)
days=31;
if(mouth==4||mouth==6||mouth==9||mouth==11)
days=30;
if((year%4==0&&year%100!=0)||year%400==0);
else if(mouth==2)days=29;
else if(mouth==2)days=28;
cout<<days<<endl;
return 0;
}