Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int thang;
- cout<<"\n nhap vao 1 thang ";
- cin>>thang;
- if(thang<1||thang>12)
- {
- cout<<"khong hop le";
- }
- else if(thang==2)
- {
- cout<<"thang co 28 ngay(29 ngay neu la nam nhuan)";
- }
- else if(thang==4||thang==6||thang==9|thang==11)
- {
- cout<<"thang co 30 ngay";
- }
- else
- {
- cout<<"thang co 31 ngay";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement