没有合适的资源?快使用搜索试试~ 我知道了~
#include <iostream> using namespace std; int main() { int month; do { cout<<"Enter a number of month:"<<endl; cin>>month; if(month<=0||month>12) { cout<<"please check it again!"<<endl; } }while(month<=0||month>12) switch(month) { case 2: cout<<"28 or 29 days"<<endl; break; case 4: case 6: case 9: case 11: cout<<"30 days"<<endl; break; default: cout<<"31 days"<<endl; break; } }
资源推荐
资源详情
资源评论
资源评论
Sword-Master
- 粉丝: 5
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功