SHARE
TWEET

Untitled

a guest Oct 24th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int thang;
  6.     cout<<"\n nhap vao 1 thang ";
  7.     cin>>thang;
  8.     if(thang<1||thang>12)
  9.     {
  10.         cout<<"khong hop le";
  11.     }
  12.     else if(thang==2)
  13.     {
  14.         cout<<"thang co 28 ngay(29 ngay neu la nam nhuan)";
  15.     }
  16.     else if(thang==4||thang==6||thang==9|thang==11)
  17.     {
  18.         cout<<"thang co 30 ngay";
  19.        
  20.     }
  21.     else
  22.     {
  23.         cout<<"thang co 31 ngay";
  24.     }
  25.     return 0;
  26.  
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top