Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int mesec;
- cin>> mesec;
- if(mesec==1 or mesec==3 or mesec==5 or mesec==7 or mesec==8 or mesec==12 or mesec==10 ){
- cout<<"31"<<endl;
- }else{
- if(mesec==4 or mesec==6 or mesec==9 or mesec==11)
- cout<<"30"<<endl;
- else{
- if(mesec==2)
- cout<<"28"<<endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement