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