Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int n;
- cout << " nhap thang";
- cin>>n;
- switch (n){
- case 1 : {cout<<"31 ngay";
- break;}
- case 2 :{cout<< " 28 ngay";
- break;
- }
- case 3: {cout<<"31 ngay";
- break;}
- case 5 : {cout<<"31 ngay";
- break;}
- case 7 : {cout<<"31 ngay";
- break;}
- case 10 : {cout<<"31 ngay";
- break;}
- case 12 : {cout<<"31 ngay";
- break;}
- case 4: {cout<< " 30 ngay";
- break;}
- case 6: {cout<< " 30 ngay";
- break;}
- case 9: {cout<< " 30 ngay";
- break;}
- case 11: {cout<< " 30 ngay";
- break;}
- default :{cout<< " khong hop le ";
- break;
- }
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement