Guest User

Untitled

a guest
Nov 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. using namespace std;
  4. int main()
  5. {
  6. int M,G,i;
  7.  
  8. cin>>M>>G;
  9. if(M=='1'||M=='3'||M=='5'||M=='7'||M=='8'||M=='10'||M=='12'){cout<<"31";}
  10. else if(M=='4'||M=='6'||M=='9'||M=='11'){cout<<"30";}
  11.  
  12.  
  13. }
Add Comment
Please, Sign In to add comment