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